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,500 community submitted regex patterns...
-1
1 upvotes, 2 downvotes (score 6.1%) (You must be signed in to vote)
RegExp black list example usage
PCRE (PHP <7.3)
no description available
Submitted by
Vadim Markovtsev
-
9 years ago
2015-01-20 09:57
5
5 upvotes, 0 downvotes (score 56.6%) (You must be signed in to vote)
relative to absolute
PCRE (PHP <7.3)
relative to absolute
Submitted by
xp_prg
-
9 years ago
2015-01-20 01:16
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
testing for a bloke
PCRE (PHP <7.3)
Parsing html with regex is bad though.
Submitted by
Iroh
-
9 years ago
2015-01-18 03:42
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
deine regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2015-01-16 21:42
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regex to get video ID from Youtube links
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2015-01-16 18:53
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Flask detectar variables en url
PCRE (PHP <7.3)
Esta expresión regular permite detectar las variables que están declaradas dentro de una url o route del framework Flask, con esto lo único que queda es armar un loop que recorra las coincidencias y que las remplace por los valores adecuados
Submitted by
Jerry Anselmi <https://github.com/ElMijo>
-
9 years ago
2015-01-15 22:00
0
2 upvotes, 2 downvotes (score 15%) (You must be signed in to vote)
(sub)domain match
PCRE (PHP <7.3)
1.Tree of subdivisions may have up to 127 levels. 2.Each label may contain up to 63 characters. 3.The full domain name may not exceed the length of 253 characters in its textual representation. rfc1035 rfc1123 rfc2181
Submitted by
Nick Chkhikvishvili
-
9 years ago
2015-01-15 17:22
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
RegexMatchingAtLeast2SpecialCharacters
PCRE (PHP <7.3)
The special characters are ~!@#$%^&*()
Submitted by
anonymous
-
9 years ago
2015-01-14 15:28
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
filter match
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2015-01-14 12:11
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
Test post by e-mail
PCRE (PHP <7.3)
Description here
Submitted by
Arief
-
9 years ago
2015-01-14 05:04
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
transfer
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2015-01-13 20:44
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Code Review
PCRE (PHP <7.3)
username
Submitted by
Devon Parsons
-
9 years ago
2015-01-13 20:23
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Array formatting (serialized)
PCRE (PHP <7.3)
Check for correctly formatted array of this type: array( array('name'=>'War and Peace', 'year'=>1865), array('name'=>'Different Seasons', 'year'=>1982), )
Submitted by
oneperfectsunrise
-
9 years ago
2015-01-13 15:58
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Array formating (serialized)
PCRE (PHP <7.3)
Check for correctly formatted array of this type: array('a', 'bb', 'ccccc',)
Submitted by
oneperfectsunrise
-
9 years ago
2015-01-13 15:55
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Array formating
PCRE (PHP <7.3)
Check for correctly formatted array of this type: array(1,2,3,)
Submitted by
oneperfectsunrise
-
9 years ago
2015-01-13 15:41
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
tel:// and sms:// validator
PCRE (PHP <7.3)
Easly to check tel:// or sms:// protocols.
Submitted by
Erdem Arslan
-
9 years ago
2015-01-12 23:35
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
replace test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2015-01-12 19:18
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
ZLNLB
PCRE (PHP <7.3)
Zero length negative lookbehind
Submitted by
anonymous
-
9 years ago
2015-01-09 17:58
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
sms csv (sqlite exported) replace newlines with \n in body
PCRE (PHP <7.3)
no description available
Submitted by
flash_us
-
9 years ago
2015-01-09 00:37
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
reference
PCRE (PHP <7.3)
no description available
Submitted by
karthikeyan
-
9 years ago
2015-01-05 12:59
1
...
543
544
545
546
547
548
549
...
575
domain from full url
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Regular Expression
Python
r"
://
(
(?:
[
\w
-
]
+
\.
)+
(?:
[
\w
-
]
+
)
)
(?:
:
\d
+
)?
(?:
/
|
$
)
"
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
9 years ago
2015-01-05 09:53