Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
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 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 11,840 community submitted regex patterns...
1
match all test directories
PCRE2 (PHP >=7.3)
s
Submitted by
anonymous
-
3 days ago
1
Postcode validation
PCRE2 (PHP >=7.3)
I come across Dutch postcodes quite different from normal 5 or 6 digit postcodes. So, this regex covers most possible postcodes. Test cases: 1234 AB // Dutch postal code 12345 // Generic 5-digit postal code 380059 // Indian 6-digit postal code...
Submitted by
Pratik P
-
2 days ago
1
RFC5322 email address validation (maybe FEWER STEPS !)
PCRE2 (PHP >=7.3)
validate email address according to RFC 5322 specification. I tried to optimize regex radically restructuring the original BNF-like specification with full support preserved.
Submitted by
hirunotuki
-
a day ago
1
.
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
1
Match US Currency Amount
PCRE (PHP <7.3)
Group 1 has dollar amount with or without commas, Group 4 has optional cents.
Submitted by
anonymous
-
10 years ago
1
erferf
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
match hyphen between quotes
PCRE (PHP <7.3)
no description available
Submitted by
cetanu
-
10 years ago
1
Find common version names in filenames
PCRE (PHP <7.3)
no description available
Submitted by
Jared
-
10 years ago
1
Replaces odd number of quotes with even number of quotes.
PCRE (PHP <7.3)
no description available
Submitted by
ingredient_15939
-
10 years ago
1
Divisible by 3 numbers
PCRE (PHP <7.3)
no description available
Submitted by
Oleksandr Sochka
-
10 years ago
1
parse SQL statements and get values
PCRE (PHP <7.3)
but it does not work. How do I make it work? It will be used in C#
Submitted by
anonymous
-
10 years ago
1
css all comments
PCRE (PHP <7.3)
no description available
Submitted by
Mitus M.
-
10 years ago
1
select stuff of </a> [beta]
PCRE (PHP <7.3)
no description available
Submitted by
Kerosene
-
10 years ago
1
CEF Pipe and Space Delimited Data
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
Facebook Video ID from link
PCRE (PHP <7.3)
Matches the video id in FB links
Submitted by
Eirenaios
-
10 years ago
1
price selector
PCRE (PHP <7.3)
Matches any of the prices in the text below: Im asking $15,500 OBO Im asking 15,400$ Im asking 15400$ Im asking $15400 Im asking 15 400$...
Submitted by
chocksy
-
10 years ago
1
I need to escape " in json, issue: if they are already escaped
PCRE (PHP <7.3)
I'm having issues escaping quotes inside json content. I can get the \" to be put in if " is seen, the issue is I don't want that to be done if \" is in the content (as that is already escaped)
Submitted by
Patrick
-
10 years ago
1
Linkedin profile matching regex
PCRE (PHP <7.3)
This a regex for matching linkedin profile URLs
Submitted by
@antespi
-
10 years ago
1
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
-
10 years ago
1
regular expression - with space
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
...
552
553
554
555
556
...
592
Improved RegEx101 ID Grabber
0
Regular Expression
PCRE (PHP <7.3)
/
#
Match
the
beginning
of
the
string.
^
#
Match
the
HTTP(S)
domain
and
path
of
re101.
https
?
:
\/
{2}
regex101
\.
com
\/
r
\/
#
Capture
the
unique
ID.
(?<id>
[
a
-
z
\d
]
{1,6}
)
#
Capture
the
revision.
(?:
\/
(?<rev>
\d
+
)
)?
#
Do
not
care
about
anything
else...
/
gimx
Open regex in editor
Description
Grabs the ID and revision from the URL.
Submitted by
RF
-
9 years ago