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
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 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 11,300 community submitted regex patterns...
0
find a string (placeholder) inside a string
Python
find a string (placeholder) inside a string
Submitted by
vikash Kumar Agarwal (vikashmnk)
-
9 years ago
0
ISO 8601 Dates
PCRE (PHP <7.3)
Regex supporting all formats of ISO 8601 dates (with timezone and microseconds) that are compatible with PHP DateTime constructor and strtotime.
Submitted by
mjolnic
-
9 years ago
0
Squid access.log
PCRE (PHP <7.3)
cut/paste into fluentd/td-agent config
Submitted by
HoBoJo
-
9 years ago
0
select internal special chars
PCRE (PHP <7.3)
select all special chars inside a world/sentence
Submitted by
anonymous
-
9 years ago
0
Regex json
Python
no description available
Submitted by
anonymous
-
9 years ago
0
Find method declarations without parameter types
PCRE (PHP <7.3)
no description available
Submitted by
Iulian Onofrei
-
9 years ago
0
APACHE_ACCESS_LOG_PATTERN
Python
Used in lab2 spark for pyspark access log pattern recognition
Submitted by
anonymous
-
9 years ago
0
Match RE/FWD in subject body
PCRE (PHP <7.3)
no description available
Submitted by
wilco
-
9 years ago
0
Content Type
PCRE (PHP <7.3)
What the fuck?
Submitted by
I'm fucked up, Man
-
9 years ago
0
shankar g mirpuri social security number
Python
no description available
Submitted by
anonymous
-
9 years ago
0
visa cvv
PCRE (PHP <7.3)
4003447582444271
Submitted by
anonymous
-
9 years ago
0
Select string in between HTML tags
PCRE (PHP <7.3)
no description available
Submitted by
Jim Sheen
-
9 years ago
0
float
PCRE (PHP <7.3)
matches floats: 1.0f 1.0F .0f .1F 1f 1F
Submitted by
Mateusz Paluch
-
9 years ago
0
match invalid postcode
Python
match as long as not 5digit code
Submitted by
anonymous
-
9 years ago
0
Multiple lines comment in Java
PCRE (PHP <7.3)
Begin with /* accept anything inside and finish with */
Submitted by
Wesley Ramos
-
9 years ago
0
Reads C-like comments
Python
Reads C comments as this "/* Do test / and removes / */ parts and leaves only comment part
Submitted by
Shuhrat Rahimov
-
9 years ago
0
NANP Phone Number Checker
PCRE (PHP <7.3)
Checks whether a North American Numbering Plan (NANP) phone number is valid. (Matching numbers are not necessarily real.) However, it registers 299-911-9999 as OK, even though it's not valid.
Submitted by
anonymous
-
9 years ago
0
find any URI/URL with no trailing slash v2
PCRE (PHP <7.3)
updated
Submitted by
-oneglory
-
9 years ago
0
IRC protocol arguments parsing
PCRE (PHP <7.3)
select and retrieve information form IRC client to client prefix
Submitted by
Kerosene2000
-
9 years ago
0
10
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
...
216
217
218
219
220
...
565
US datetime
2
Regular Expression
ECMAScript (JavaScript)
/
^
(
[
1
-
9
]
|
(?=
0
)
0
[
1
-
9
]
|
(?=
1
)
1
[
0
-
2
]
)
[
-/.
]
(
[
1
-
9
]
|
(?=
[
0
-
2
]
)
[
0
-
2
]
[
0
-
9
]
|
(?=
3
)
3
[
0
-
1
]
)
[
-/.
]
(
\d
{4}
|
\d
{2}
)
(
(
[
1
-
9
]
|
(?=
[
0
-
1
]
)
[
0
-
1
]
[
0
-
9
]
|
(?=
2
)
2
[
0
-
4
]
)
:
(?=
[
0
-
5
]
)
[
0
-
5
]
[
0
-
9
]
(
:
(?=
[
0
-
5
]
)
[
0
-
5
]
[
0
-
9
]
)?
(
a
|
p
|
A
|
P
|
am
|
pm
|
AM
|
PM
)?
)?
$
/
gm
Open regex in editor
Description
Validates a US mm-dd-yy(yy) with an optional hh:mm:ss time.
Submitted by
anonymous
-
8 years ago