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
matching value of html src attribute
PCRE (PHP <7.3)
matching value of html src attribute
Submitted by
junkuos
-
10 years ago
1
get top level domain excluding ports
ECMAScript (JavaScript)
I need to get the top level domain from the request header but it can be in a vary ways.. how can I match but exclude parts I dont want to get ie. ports
Submitted by
nei
-
10 years ago
1
spaces in parenthesis
ECMAScript (JavaScript)
Eliminate spaces in the inner part of parenthesis.
Submitted by
Luis Colorado
-
10 years ago
1
Email address validator
PCRE (PHP <7.3)
Validates most email addresses. Using the range [A-Za-z0-9] at the beginning instead of \w means an address cannot begin with an underscore. This range is also used to exclude underscores from the domain (part after @).
Submitted by
Owen Howard
-
10 years ago
1
States
Python
States (US) 2 char format, matches: Ga or GA
Submitted by
miqui
-
10 years ago
1
leap year validate
ECMAScript (JavaScript)
no description available
Submitted by
Ahosan Karim Asik
-
9 years ago
1
CPF
ECMAScript (JavaScript)
Validador de CPF
Submitted by
Gustavo Américo
-
9 years ago
1
Extract domain and path from video embeds
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Function with n parameters in C-like syntax.
PCRE (PHP <7.3)
no description available
Submitted by
elkamarado@gmail.com
-
9 years ago
1
Wikipedia anchor
ECMAScript (JavaScript)
Match Wikipedia anchor dot-instead-of-percent encoding string.replace(/((?:\.[a-f0-9]{2}){2})/ig, function(match) { return decodeURIComponent(match.replace(/\./g, '%')) });
Submitted by
anonymous
-
9 years ago
1
Google Plus user profile url pattern
PCRE (PHP <7.3)
Pattern that check your string to match Google Plus user profile URL.
Submitted by
JSC Quatrodev
-
9 years ago
1
one decimal validation
ECMAScript (JavaScript)
this regular expression allow numbers with one number from 1 to 5 and only one decimal value Onlys accept numeric values from 1.0 to 5
Submitted by
anonymous
-
9 years ago
0
Matches when the string does not contain an exact word
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
0
french phone number (locale format)
PCRE (PHP <7.3)
little matcher for french phone number in locale format (example: 0231348228)
Submitted by
Nolwennig
-
10 years ago
0
Fully Qualified Domain Name FQDN
PCRE (PHP <7.3)
Fully qualified domain name validation
Submitted by
ximbs
-
9 years ago
1
Twitter Hashtags
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
1
Matching an Email
ECMAScript (JavaScript)
no description available
Submitted by
appsunited
-
11 years ago
1
IPv4 extraction
Python
no description available
Submitted by
Jacob
-
11 years ago
1
quoted string in VB.net format
Python
Get all strings in vb.net format (even nested quotes"
Submitted by
Alan Moore (http://stackoverflow.com/questions/2148587/finding-quoted-strings-with-escaped-quotes-in-c-sharp-using-a-regular-expression) modified by j
-
11 years ago
1
MAtch all lines starting with # to remove em
PCRE (PHP <7.3)
no description available
Submitted by
Jactaest
-
10 years ago
1
...
852
853
854
855
856
...
902
Community Library Entry
0
Regular Expression
PCRE2 (PHP >=7.3)
/
(
9
\d
{2}
)
(
[
\-
]
?
)
(
5
\d
|
6
[
0
-
5
]
|
7
\d
|
8
[
0
-
8
]
|
9
[
0
-
2,4
-
9
]
)
(
[
\-
]
?
)
(
\d
{4}
)
/
gm
Open regex in editor
Description
ITIN regex
Submitted by
anonymous
-
2 years ago