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 18,000 community submitted regex patterns...
5
get specific value from html tag
PCRE (PHP <7.3)
no description available
Submitted by
A.ROA
-
8 years ago
5
Match any url in text or html (http, https)
PCRE2 (PHP >=7.3)
Match any url in text or html (http, https)
Submitted by
Jérémy Munsch
-
3 years ago
7
SO: fail2ban regular to find 403 request in nginx
Python
http://stackoverflow.com/q/25778420/2072035
Submitted by
anonymous
-
10 years ago
(Last modified a year ago)
7
[A-Za-z\x{0600}-\x{06FF}\x{1000}-\x{1021}_-][-\w]*
PCRE (PHP <7.3)
A-Za-z\x{0600}-\x{06FF}\x{1000}-\x{1021}_-*
Submitted by
[A-Za-z\x{0600}-\x{06FF}\x{1000}-\x{1021}_-][-\w]*
-
10 years ago
7
TimezoneOffset
ECMAScript (JavaScript)
used to parse timezone in the format -08:00 or +05:30
Submitted by
Neha
-
10 years ago
7
validate US (5 & 9 digit) ZipCodes and CA PostalCodes
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
7
simple email
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
7
Extract currency with currency symbol if present
ECMAScript (JavaScript)
Extracts values of the form £nnn,nnn.nn or $nnn.nnn from text
Submitted by
Simon Gardner
-
9 years ago
7
Remove Widows (PHP)
PCRE (PHP <7.3)
Adds a non-breaking space between the last two words of sentences
Submitted by
herkulano
-
9 years ago
73
Regex for telephone numbers all over the world
Recommended
ECMAScript (JavaScript)
Detects most of the phone numbers all over the world
Submitted by
Aditya Joshi
-
11 years ago
(Last modified a year ago)
4
semver
Recommended
PCRE (PHP <7.3)
Semantic Versioning regex pattern according to Tom Preston-Werner http://semver.org/ https://github.com/mojombo/semver/blob/master/semver.md First version of this regex follows semver 2.0.0....
Submitted by
@gvlx <Gerardo Lisboa>
-
10 years ago
18
Date Regex(DD/MM/yyyy)
PCRE (PHP <7.3)
no description available
Submitted by
alcaamado
-
9 years ago
35
IP Address validator
ECMAScript (JavaScript)
Validates IPv4 IP Address
Submitted by
krzysp
-
9 years ago
8
Sentence grabber /w extra check
PCRE (PHP <7.3)
Grabs sentences including terms like: e.g. z.b. Figs.These get caught in 1st capturing group. Problem: how to only accept matching sentences which contain pattern \b\d+[a-z]{0,2}\b?
Submitted by
light0
-
10 years ago
15
Hashtag
ECMAScript (JavaScript)
The secret of the Twitterverse.
Submitted by
Joogl
-
10 years ago
11
Codice fiscale
PCRE (PHP <7.3)
Check "codice fiscale"
Submitted by
Luca
-
9 years ago
9
Extract url GET parameters
PCRE (PHP <7.3)
Returns key/value pair of a url. Also works with google fonts which has additional information
Submitted by
anonymous
-
10 years ago
9
UUID
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
9
English date in "dd mmmm yyyy" format
Python
Parse an English date following the "dd mmmm yyyy" format.
Submitted by
Tantale
-
9 years ago
9
If-Then-Else Conditionals
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
2
3
4
5
...
900
Community Library Entry
0
Regular Expression
PCRE2 (PHP >=7.3)
/
(
\/\*
.
*
?
\*\/
?
)
|
(
(
[
]
+
)?
\/\/
.
*
?
$
)
/
gms
Open regex in editor
Description
Regular expression to match all C style comments.
Submitted by
Seymoar Regex
-
3 years ago