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 2,160 community submitted regex patterns...
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Capture Query Strings
Python
A solution for capture query params.
Submitted by
Rafael Laurindo
-
7 years ago
2016-05-15 10:22
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Email
Python
Python
Submitted by
anonymous
-
7 years ago
2016-09-07 03:55
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Thorough UK Postcode Validator with In/Out code capture groups
Python
A more thorough UK postcode validator tested against all UK postcodes on a regular basis, but excluding the special GIRO postcode case out of personal preference. Additionally has capture groups for the In-code and Out-code sections. Requires case insensitive matching.
Submitted by
Chris G
-
7 years ago
2016-09-30 15:51
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
C# Regex Extract/Match Nested HTML Elements/Tags
.NET (C#)
With this C# regex, you can easily match/Parse Nested HTML tags. Example input: someTitle ...
Submitted by
w4po
-
2 years ago
2022-03-03 19:13
(Last modified 2 months ago)
2023-08-01 07:26
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Match any layer bracket pair (.NET)
.NET (C#)
Match any layer bracket pair
Submitted by
Yakumo Yukari
-
2 years ago
2022-03-10 03:13
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Caltrans EA validation with optional XX-XXXXXX entry and C##-#????#
.NET (C#)
Checks validity of an EA number first two digits 01-12 followed by hyphen then a number from 0-4 and then 4 numbers or uppercase letters and ending in a 1 or 4 for example "05-1J7601". Adding a capital C to the beginning is also accepted "C05-1J7601", along with the entry of 2 X's hyphen and 6 X's ...
Submitted by
RDJ@Ct
-
6 months ago
2023-04-07 19:11
(Last modified 6 months ago)
2023-04-07 19:51
7
20 upvotes, 13 downvotes (score 43.7%) (You must be signed in to vote)
CSS Import
Python
no description available
Submitted by
anonymous
-
9 years ago
2014-05-03 00:51
7
30 upvotes, 23 downvotes (score 43.3%) (You must be signed in to vote)
Extract Protocol, URL, URL Path, get parameters and hash from URI
Python
This is simplified from my last submission.
Submitted by
Dale O'Brien
-
9 years ago
2014-05-22 23:34
3
33 upvotes, 30 downvotes (score 40.3%) (You must be signed in to vote)
phone
Python
matches: + example: +52 33 3884 7720 +1 770 343 5788
Submitted by
miqui
-
8 years ago
2015-05-07 17:14
4
9 upvotes, 5 downvotes (score 38.8%) (You must be signed in to vote)
Complete imgur link regex
Python
This regex grabs all kinds of imgur links and groups them in meaningful names aswell. This way you have full flow-control in your python-scripts.
Submitted by
Mio
-
9 years ago
2015-03-13 11:26
3
4 upvotes, 1 downvotes (score 37.6%) (You must be signed in to vote)
prices in nis
Python
no description available
Submitted by
molaxx
-
8 years ago
2015-06-15 15:16
3
8 upvotes, 5 downvotes (score 35.5%) (You must be signed in to vote)
date time
Python
1/Jul/2013 03:27:12
Submitted by
himel
-
10 years ago
2014-01-29 03:45
3
7 upvotes, 4 downvotes (score 35.4%) (You must be signed in to vote)
Twitch URL Regex
Python
Can grab all kinds of valid twitch URLs.
Submitted by
Mio
-
9 years ago
2015-03-15 12:53
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
xbmc - videodevil - chaturbate - test
Python
no description available
Submitted by
anonymous
-
9 years ago
2014-06-28 16:05
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
log trillian
Python
no description available
Submitted by
NTP-[SADAS]
-
9 years ago
2014-10-06 10:46
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
selectin multiple image pattern
Python
no description available
Submitted by
cool_jesus
-
8 years ago
2015-04-14 15:08
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
suricata OSSIM regex-1
Python
no description available
Submitted by
anonymous
-
8 years ago
2015-06-03 19:38
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Match 'words' with internal punctuation retained
Python
Matches words without external punctuation but with internal punctuation.
Submitted by
anonymous
-
8 years ago
2015-08-07 05:52
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
calibre book parse
Python
no description available
Submitted by
anonymous
-
8 years ago
2015-08-20 06:33
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Franklin Regex
Python
Testing Franklin related regex matching cases.
Submitted by
Arthur
-
8 years ago
2015-10-02 22:33
1
2
3
4
5
...
108
Semantic Version (semver)
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
.NET (C#)
@"
^
(?<major>
0
|
[
1
-
9
]
\d
*
)
\.
(?<minor>
0
|
[
1
-
9
]
\d
*
)
\.
(?<patch>
0
|
[
1
-
9
]
\d
*
)
(?:
-
(?<prerelease>
(?:
0
|
[
1
-
9
]
\d
*
|
\d
*
[
a
-
zA
-
Z-
]
[
0
-
9a
-
zA
-
Z-
]
*
)
(?:
\.
(?:
0
|
[
1
-
9
]
\d
*
|
\d
*
[
a
-
zA
-
Z-
]
[
0
-
9a
-
zA
-
Z-
]
*
)
)*
)
)?
(?:
\+
(?<buildmetadata>
[
0
-
9a
-
zA
-
Z-
]
+
(?:
\.
[
0
-
9a
-
zA
-
Z-
]
+
)*
)
)?
$
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
semver.org,Jeff Jacobson
-
10 months ago
2022-11-23 17:48