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...
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
0
FB payload
Golang
no description available
Submitted by
anonymous
-
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
URL test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
1
RegEx 03
PCRE (PHP <7.3)
Desafio proposto pelo Brunno: Apenas a palavra "velit". Todas as suas aparições no texto - 11/03/2020.
Submitted by
Paula Picolott (ppicolott)
-
5 years ago
1
Duco2
Python
no description available
Submitted by
anonymous
-
5 years ago
1
身份证号(2代,18位数字),最后一位是校验位,可能为数字或字符X
ECMAScript (JavaScript)
身份证号(2代,18位数字),最后一位是校验位,可能为数字或字符X
Submitted by
anonymous
-
5 years ago
1
...
283
284
285
286
287
...
900
Community Library Entry
0
Regular Expression
.NET 7.0 (C#)
@"
^
(?=
(?<http>
(?:
https
?
:
\/\/
){1}
(?:
www
\.
)?
)?
)
(?
(?=
\k<http>
?
(?<ipaddr>
(?:
\d
{1,3}
\.
){3}
\d
{1,3}
(?:
\:
\d
{1,5}
)?
)
)
\k<http>
?
\k<ipaddr>
(?:
\.
[
\w
]
{1,9}
)?
|
\k<http>
(?:
[
\w
]
\.
?
){1,255}
\.
[
\w
]
{1,9}
)
(?:
\/
.
*
)?
$
"
gm
Open regex in editor
Description
Can be used to validate on URL's.
Submitted by
anonymous
-
a year ago