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...
1
Modern Firefox User Agent
PCRE (PHP <7.3)
Detects modern Firefox browser versions Firefox >= 60 These versions require only ~29.33 KB of core-js polyfills.
Submitted by
slavafomin
-
5 years ago
1
Modern Safari versions User Agent
PCRE (PHP <7.3)
Detects modern Safari versions by User Agent string Safari & iOS Safari >= 10 These browsers require ~62 KB of core-js polyfills.
Submitted by
slavafomin
-
5 years ago
1
22 Jimmy
PCRE (PHP <7.3)
.+\.{a-z}+$ / .+\.{a-z}+$...
Submitted by
anonymous
-
5 years ago
1
Replace many spaces to one
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
1
Another X / Extra X / X more
Python
Extract phrases meaning "add X more of the previous item"
Submitted by
anonymous
-
5 years ago
1
Wordless Date Validation
PCRE (PHP <7.3)
Validate and capture different dates without words for example: dd/mm/yyyy, d/m/yy, yyyy-mm-dd, yy-mm-dd
Submitted by
anonymous
-
5 years ago
1
URL with port and hash
PCRE (PHP <7.3)
URL with port and hash
Submitted by
anonymous
-
5 years ago
1
Exclude extension from file basename
PCRE (PHP <7.3)
Description Exclude extension from file basename - get filename only! BASENAME = FILENAME.EXTENSION
Submitted by
Cober@Axterbach
-
5 years ago
1
IPv4 private CIDR range RFC1918
Golang
Validates that you provide a CIDR in one of the following valid ranges. 0.0.0 – 127.255.255.255 127.0.0.0/8 0.0.0 – 10.255.255.255 10.0.0.0/8 16.0.0 – 172. 31.255.255 172.16.0.0/12 192.168.0.0 – 192.168.255.255 192.168.0.0/16...
Submitted by
David Stockton
-
5 years ago
1
Exclude subdirs from URL
PCRE (PHP <7.3)
Excludes certain subdirs unless they contain specific valid patterns
Submitted by
anonymous
-
5 years ago
1
Iranian Mobile Numbers
PCRE (PHP <7.3)
Iranian Mobile Numbers By: EmIT (Seyed Emad Armoun) www.EmadArmoun.ir
Submitted by
anonymous
-
5 years ago
1
Audio filename splitter
Python
This Python regex allows you to split an audio filename with the sintax Authors - Title (Text1) [Text2].extension into: Group 1: Authors Group 2: Title Group 3: Text1 Group 4: Text2 Group 5: .extension...
Submitted by
Eche L.A.
-
5 years ago
1
Match what we don't want, to replace with empty
PCRE (PHP <7.3)
This was necessary for cases such as the Amazon Settlements reports To import these, we concatenate many file into one. The header in this concatenated file is reapeated as many times as files were concatenated. We have seen that is there are no sales with a promotion for a determined period, the fi...
Submitted by
anonymous
-
5 years ago
1
Name,last name, first name, full name
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
1
H codes in string PHP
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
capture production
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
5 years ago
1
Capture digits and extension of North American phone number (North American Numbering Plan)
PCRE (PHP <7.3)
strips Country Code 1 &/or token **strips separators **strips separators **strips extra digits in vanity phone numbers strips extension delimiter ${ext} or ${4} captures n-digit extension
Submitted by
anonymous
-
5 years ago
1
Catch react-like components using JS
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
5 years ago
1
link finder
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
1
Find parameters in Oracle dynamic scripts
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
1
...
237
238
239
240
241
...
902
Community Library Entry
2
Regular Expression
PCRE2 (PHP >=7.3)
/
(?P<host>
\d
{1,3}
.\d
{1,3}
.\d
{1,3}
.\d
{1,3}
)
(
\s
-
\s
)
(?P<user_name>
[
\w
-
]
*
)
(
\s
\[
)
(?P<time>
\w
*
\/
\w
*
\/
\d
{1,4}
:
\d
{1,2}
:
\d
{1,2}
:
\d
{1,2}
\s
-
\d
{1,4}
)
(
\]
\s
\"
)
(?P<request>
.
*
)
(
"
)
/
gm
Open regex in editor
Description
no description available
Submitted by
PepeRG
-
4 years ago