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...
2
js function test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
12 years ago
4
1st TSV
PCRE (PHP <7.3)
no description available
Submitted by
DynV
-
12 years ago
1
Table Purgatory
PCRE (PHP <7.3)
A regex to find all nowrap text occurrences and name all the groups involved in preparation for a replacement pass
Submitted by
Joe Hacobian
-
12 years ago
4
Strip out domain extensions except for Microsoft .net technologies.
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
12 years ago
4
For Auto RTFs
PCRE (PHP <7.3)
no description available
Submitted by
Dan Bloomquist
-
12 years ago
4
Strip multi-line (star) comments from JavaScript, while leaving any CDATA sections intact.
PCRE (PHP <7.3)
This regular expression removes multi-line (star) comments from JavaScript, while leaving any CDATA sections intact. Use the global (g) modifier to match them all (if you plan to use PHP's preg_replace, the g modifier is not necessary), and use the (s) modifier to make dots match newlines (this will...
Submitted by
Dane MacMillan
-
12 years ago
2
MIME type verification
PCRE (PHP <7.3)
See http://tools.ietf.org/html/rfc2045#section-5.1
Submitted by
Erin Millard
-
12 years ago
1
PHP ReflectionParameter:__toString() parser
PCRE (PHP <7.3)
See http://www.php.net/manual/en/reflectionparameter.tostring.php
Submitted by
Erin Millard
-
12 years ago
13
PHP variable name
PCRE (PHP <7.3)
Valid PHP variable name as defined in the manual at http://php.net/manual/en/language.variables.basics.php
Submitted by
Erin Millard
-
12 years ago
52
Disorted Email Addresses
PCRE (PHP <7.3)
Matches distorted email addresses and converts them back to real ones.
Submitted by
dislick
-
12 years ago
40
URL regexp
PCRE (PHP <7.3)
A quite neat regular expression for URLs, e-mails..., I found on Matthew O'Riordan's blog.
Submitted by
Matthew O'Riordan
-
12 years ago
1
...
898
899
900
Community Library Entry
1
Regular Expression
Python
r"
\b
(?P<date>
(?P<day>
(?:
(?:
0
[
1
-
9
]
|
[
12
]
\d
|
30
)
(?=
[
-
:
\.\/
]
(?:
04
|
06
|
09
|
11
))
)
|
(?:
(?:
0
[
1
-
9
]
|
[
12
]
\d
|
3
[
01
]
)
(?=
[
-
:
\.\/
]
(?:
01
|
03
|
05
|
07
|
08
|
10
|
12
))
)
|
(?:
(?:
0
[
1
-
9
]
|
[
12
]
\d
)
(?=
[
-
:
\.\/
]
02
[
-
:
\.\/
]
\d\d
(?:(
[
02468
]
[
048
]
)|
(
[
13579
]
[
26
]
)))
(?!
[
-
:
\.\/
]
02
[
-
:
\.\/
]
(?:(
[
2468
]
[
1235679
]
)|
(
[
13579
]
[
01345789
]
)
00
))
)
|
(?:
(?:
0
[
1
-
9
]
|
1
\d
|
2
[
0
-
8
]
)
(?=
[
-
:
\.\/
]
02
[
-
:
\.\/
]
)
)
)
[
-
:
\.\/
]
(?P<month>
0
[
1
-
9
]
|
1
[
012
]
)
[
-
:
\.\/
]
(?P<year>
[
1
-
9
]
\d
{3}
)
)
\b
"
gmx
Open regex in editor
Description
1000-9999 years '-', ' ', ':', '.', or '/' may be user as divider
Submitted by
furren
-
7 months ago