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 9,440 community submitted regex patterns...
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
quotes and escapes
PCRE (PHP <7.3)
no description available
Submitted by
zgorawski
-
9 years ago
2014-08-04 08:37
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Creditcard expiry date checker
PCRE (PHP <7.3)
Checks if a expiry date is: mm/yy. You still have to check if it is a valid expiry date timewise.
Submitted by
Pevawi
-
9 years ago
2014-08-01 15:49
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
regular expression - with space
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-08-01 09:18
1
5 upvotes, 4 downvotes (score 26.7%) (You must be signed in to vote)
regular expression to avoid white spaces
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-08-01 09:13
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
test url
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-08-01 09:07
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
1
PCRE (PHP <7.3)
23123
Submitted by
anonymous
-
9 years ago
2014-08-01 07:59
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Match subset
PCRE (PHP <7.3)
no description available
Submitted by
Jason
-
9 years ago
2014-07-29 19:16
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
RegEx within tags
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-07-28 10:42
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Replace Commas Inside Quotes
PCRE (PHP <7.3)
Regex to remove commas within quotes. (Common situtaion in .csv files) Eg: data,"some ""embedded"" stuff,commas,inside,quotes",more Replace String would be something like this:...
Submitted by
Judd
-
9 years ago
2014-07-26 11:37
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
Version in Cordova config.xml
PCRE (PHP <7.3)
no description available
Submitted by
procek
-
9 years ago
2014-07-26 09:09
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
match text between two <br/> tags.
PCRE (PHP <7.3)
no description available
Submitted by
gordie
-
9 years ago
2014-07-25 22:51
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Primjer regexa koji je potreban u jednom dijelu našeg sitea
PCRE (PHP <7.3)
Ovo je regex (regular expression - regularni izraz) koji parsira i usput validira broj naÅ¡eg predraÄuna.
Submitted by
Goran
-
9 years ago
2014-07-24 08:04
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match a date in SQL Server format
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-07-23 09:35
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
Remove /* comments */ from CSS
PCRE (PHP <7.3)
no description available
Submitted by
JerseyMilker
-
9 years ago
2014-07-22 19:53
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
tesdsa
PCRE (PHP <7.3)
dsadsadsadsa
Submitted by
dasdasdsa
-
9 years ago
2014-07-22 15:06
1
5 upvotes, 4 downvotes (score 26.7%) (You must be signed in to vote)
HTML color search
PCRE (PHP <7.3)
Searches for hex colors in HTML code.
Submitted by
Barlean
-
9 years ago
2014-07-22 12:35
2
7 upvotes, 5 downvotes (score 32%) (You must be signed in to vote)
named group sample
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-07-21 23:39
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
background-image URL
PCRE (PHP <7.3)
regex to fetch the URL of the background-image CSS-Propertie
Submitted by
Mutator
-
9 years ago
2014-07-21 10:51
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
Date YYYYMMDD
PCRE (PHP <7.3)
Date in format YYYYMMDD Year between [1900-2099] No leap year check but month 02 is limited to 29 days.
Submitted by
Ahmed Z
-
9 years ago
2014-07-19 20:12
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Find all list items
PCRE (PHP <7.3)
I need to find the fastest expression to get all the list items inside a an put the items inside an array. input: xxx ...
Submitted by
Sonny
-
9 years ago
2014-07-17 16:32
1
...
457
458
459
460
461
462
463
...
472
Creditcard expiry date checker
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
^
(
0
?
[
1
-
9
]
{1}
|
1
[
0
-
2
]
{1}
)
\/
(
[
0
-
9
]
{2}
)
$
/
Open regex in editor
Description
Loading markdown...
Submitted by
Pevawi
-
9 years ago
2014-08-01 15:49