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,040 community submitted regex patterns...
3
mm/dd/yyyy Date
ECMAScript (JavaScript)
no description available
Submitted by
jay johnson
-
11 years ago
3
date time
Python
1/Jul/2013 03:27:12
Submitted by
himel
-
11 years ago
1
phone test
PCRE (PHP <7.3)
no description available
Submitted by
cool guy
-
11 years ago
2
42 post regex
PCRE (PHP <7.3)
Hosts regex for 42 school (france)
Submitted by
Kerosene2000
-
11 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)
0
Match all html tags
PCRE (PHP <7.3)
no description available
Submitted by
Kostas Trichas
-
10 years ago
3
everything that doesn't match .gitignore at the end
PCRE (PHP <7.3)
must match: selection/nl/example.xml selection/example.xml selection/blabla.txt selection/es/ ...
Submitted by
anonymous
-
10 years 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
2
price float pattern
ECMAScript (JavaScript)
Checks that value is float format and has two digits at max
Submitted by
@jprajani
-
10 years ago
6
Extract style
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
7
validate US (5 & 9 digit) ZipCodes and CA PostalCodes
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
7
IOS3166 Country Code Identification REGEX
Python
IOS3166 Country Code Identification REGEX
Submitted by
theitgeek@recu.org.uk
-
10 years ago
7
simple email
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
3
Italian VAT (IVA)
ECMAScript (JavaScript)
Italian VAT
Submitted by
Italo
-
9 years ago
3
Social Security Number (SSN)
ECMAScript (JavaScript)
tests for valid social security numbers according to the social security administration. more specifically: -disallows a group to have all 0s -disallows first group to have all 6s -disallows a ssn to begin with 9 note that this does not test for issued ssn's. that would be impossible to implement h...
Submitted by
noxToken
-
9 years ago
5
Numeric values greater than zero with decimal
PCRE (PHP <7.3)
Pattern that only accept numeric value and greater than zero with up to decimal places ( you can change the decimal places just replace {1,2} depend on how many decimal places you like
Submitted by
Eugene To
-
9 years ago
1
Date-Validation with mm/dd/yyyy or mmddyyyy or mm-dd-yyyy or m/d/yyyy
ECMAScript (JavaScript)
Date Validation with leap year handling, & it takes care of date validation in the format like :mm/dd/yyyy or mmddyyyy or mm-dd-yyyy or m/d/yyyy or m-d-yyyy. 12/01/1986 02/29/2016 02/29/2015 13/31/1986...
Submitted by
Ashish
-
9 years ago
6
Find consecutive duplicate words
Python
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
1
...
7
8
9
10
11
...
902
Community Library Entry
0
Regular Expression
PCRE2 (PHP >=7.3)
/
foreach
\(
(?<loop>
[
a
-
zA
-
Z0
-
9-.
_
\(\)
]
+
)
\n
{
(?<code1>
[
a
-
zA
-
Z0
-
9-.
_
\;
\n
(
\)
{}
]
+
)
await
(?<code2>
[
a
-
zA
-
Z0
-
9-.
_
\;
\n
(
\)
{}
]
+
)
}
/
gm
Open regex in editor
Description
async calls in foreach loop, search by await keyword found in foreach
Submitted by
mmateeva
-
2 years ago