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
Most upvotes
Most downvotes
Highest Score
Lowest Score
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 2,420 community submitted regex patterns...
4
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
-
10 years ago
3
phone
Python
matches: + example: +52 33 3884 7720 +1 770 343 5788
Submitted by
miqui
-
9 years ago
7
CSS Import
Python
no description available
Submitted by
anonymous
-
10 years ago
3
how to match both lines?
Python
f_name may contain spaces, numbers, characters,... so I would go for a but then I couldn't use [...]? anymore to match the second line?
Submitted by
anonymous
-
10 years ago
3
Find URLs in markdown where the lines have been wrapped
Python
no description available
Submitted by
anonymous
-
10 years ago
3
iframe src parser
Python
Get iframe src
Submitted by
Sumeet Fefar
-
9 years ago
3
Capture Query Strings
Python
A solution for capture query params.
Submitted by
Rafael Laurindo
-
8 years ago
3
Email
Python
Python
Submitted by
anonymous
-
8 years ago
3
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
-
8 years ago
3
Hostname validation
Golang
Validates subdomain, root domain, and wild card domains
Submitted by
AnonymousDapper
-
8 years ago
3
Extract URL parts only named capturing groups
Golang
Extract URL parts only named capturing groups
Submitted by
dixanms
-
3 years ago
3
Match any layer bracket pair (.NET)
.NET 7.0 (C#)
Match any layer bracket pair
Submitted by
Yakumo Yukari
-
3 years ago
3
Caltrans EA validation with optional XX-XXXXXX entry and C##-#????#
.NET 7.0 (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
-
2 years ago
(Last modified 2 years ago)
3
Placeholder resolving
.NET 7.0 (C#)
.Net regular expression for resolving placeholders in the format of ${rewriter(multilevel:key)?fallback} (+ variations)
Submitted by
anonymous
-
a year ago
8
Extract Protocol, URL, URL Path, get parameters and hash from URI
Python
This is simplified from my last submission.
Submitted by
Dale O'Brien
-
10 years ago
9
domain - host
Python
no description available
Submitted by
anonymous
-
9 years ago
5
Bible reference extractor
Python
For scraping http://skepticsannotatedbible.com/
Submitted by
antaytheist-owner
-
9 years ago
6
Find consecutive duplicate words
Python
no description available
Submitted by
anonymous
-
9 years ago
8
repeat group match
Python
no description available
Submitted by
anonymous
-
9 years ago
4
Equation matching (without equal)
Python
use this to get value of any side of an equation. You can combine this with https://regex101.com/r/fH5kJ1/1
Submitted by
Kerosene2000
-
9 years ago
1
...
118
119
120
121
Community Library Entry
3
Regular Expression
Golang
`
^
(?P<scheme>
[^
:
\/
?#
]
+
)
:
(?:
\/\/
)?
(?:
(?:
(?P<login>
[^
:
]
+
)
(?:
:
(?P<password>
[^
@
]
+
)?
)?
@
)?
(?P<host>
[^
@
\/
?#:
]
*
)
(?:
:
(?P<port>
\d
+
)?
)?
)?
(?P<path>
[^
?#
]
*
)
(?:
\?
(?P<query>
[^
#
]
*
)
)?
(?:
#
(?P<fragment>
.
*
)
)?
`
gm
Open regex in editor
Description
Extract URL parts only named capturing groups
Submitted by
dixanms
-
3 years ago