Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Social
Join the Discord community!
Follow me on twitter!
Send me an email
Donate
Donate
Donate through Paypal
Become a Github Sponsor
Info
Info
Find out what's new!
RegEx101 Wiki
Report bugs or make suggestions
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Community Patterns
Community Patterns
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Get help on Discord
Get help on IRC
Order By
Most Recent
Highest Score
Lowest Score
Most upvotes
Most downvotes
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET (C#)
Rust
Sponsors
Community Patterns
Search among 11,760 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Path shortener
PCRE2 (PHP >=7.3)
Used to shorten a path before printing it. Useful to know where we are without printing a 10km path to the screen !
Submitted by
totok
-
a year ago
2022-06-23 09:34
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Исключить слово из regexp
PCRE2 (PHP >=7.3)
Для того, чтобы найти все вхождения в строке зная начало (begin) и конец (end) подстроки без наличия в ней некоторых слов (word1 и word2), нужно использовать вот такое регулярное выражение:
Submitted by
adminway
-
a year ago
2022-06-23 19:44
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
optional
PCRE2 (PHP >=7.3)
optional
Submitted by
anonymous
-
a year ago
2022-06-24 02:21
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
optional character
PCRE2 (PHP >=7.3)
match strings with some optional characters
Submitted by
anonymous
-
a year ago
2022-06-24 02:22
(Last modified 2 months ago)
2023-07-21 16:55
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
ASD
PCRE (PHP <7.3)
HI
Submitted by
anonymous
-
a year ago
2022-06-24 05:46
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
하나의 문자열에서 빈칸(스페이스)가 하나만 나오도록 하는 정규식
PCRE2 (PHP >=7.3)
예시 “Cafe Latte” (ㅇ) “Ca fe Latte” (ㅇ) “Cafe Latte” (X) “ Cafe Latte” (X) “ Cafe Latte ” (X)...
Submitted by
anonymous
-
a year ago
2022-06-24 07:34
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
1부터 45까지의 숫자만 받음
PCRE2 (PHP >=7.3)
예시) 1 // ok 45 // ok 46 // no
Submitted by
anonymous
-
a year ago
2022-06-24 07:35
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
match comments
PCRE (PHP <7.3)
/** comments */ // to the end /* comments */
Submitted by
monk
-
a year ago
2022-06-24 11:36
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Wire Rebar Mesh Signature
PCRE2 (PHP >=7.3)
Parsing signature of wire rebar mesh by "ГОСТ 23279-2012"
Submitted by
Anatoliy Zhartun
-
a year ago
2022-06-26 07:40
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Match all filenames in any URL including those with ANSI escaped characters (PHP version)
PCRE (PHP <7.3)
Match all filenames in any URL including those with ANSI escaped characters (PHP version).
Submitted by
The Fourth Bird
-
a year ago
2022-06-26 16:10
(Last modified a year ago)
2022-06-27 09:03
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regex for youtube links
PCRE2 (PHP >=7.3)
Can obtain videoId using videoId () { return this.video_url.match(/(?:https?:\/\/)?(?:www\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\/?\?v=|\/embed\/|\/shorts\/|\/)(\w+)/)[1] } ...
Submitted by
anonymous
-
a year ago
2022-06-26 23:50
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Capture Data between 2 slashes
PCRE2 (PHP >=7.3)
Capture Data between 2 slashes
Submitted by
Sarnath Jegadeesan
-
a year ago
2022-06-28 02:07
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Split The Phone Numbers
PCRE2 (PHP >=7.3)
Split The Phone Numbers
Submitted by
anonymous
-
a year ago
2022-06-28 06:37
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
腾讯视频
PCRE (PHP <7.3)
从元素解析视频URL
Submitted by
anonymous
-
a year ago
2022-06-28 07:49
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Ipv4 validation
PCRE2 (PHP >=7.3)
regex for ip validation
Submitted by
Amper
-
a year ago
2022-06-28 11:08
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
dateformat classique fr
PCRE (PHP <7.3)
12/10/1991
Submitted by
anonymous
-
a year ago
2022-06-28 15:19
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
嵌入条件
PCRE2 (PHP >=7.3)
嵌入条件
Submitted by
anonymous
-
a year ago
2022-06-29 07:00
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Fixed Email Regex (emailregex.com)
Java 8
An email regex that allows for capitals after the final dot (ie. TEST@GMAIL.COM)
Submitted by
anonymous
-
a year ago
2022-06-29 19:14
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Remove Hatena blog keyword
PCRE2 (PHP >=7.3)
Remove Hatena blog keyword
Submitted by
anonymous
-
a year ago
2022-06-30 05:45
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
simulate to event
PCRE2 (PHP >=7.3)
simulate to event
Submitted by
anonymous
-
a year ago
2022-06-30 08:00
1
...
535
536
537
538
539
540
541
...
588
keep versions
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
[
\.\-
_
]
(?!
\d
)
/
g
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
8 years ago
2015-06-18 11:59