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 3,620 community submitted regex patterns...
1
match non-alphanumeric in string
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
word matcher
ECMAScript (JavaScript)
no description available
Submitted by
Cengizism
-
8 years ago
1
US Telephone Number
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
Javascript GUID regex
ECMAScript (JavaScript)
Validate GUID using a regex expression
Submitted by
stom
-
8 years ago
1
Phone Number
ECMAScript (JavaScript)
Allows a phone number in the following format: (123) 123-1234 The space is optional
Submitted by
Tom G.
-
8 years ago
1
Phone Number
ECMAScript (JavaScript)
Between 8 and 10 Digits, no spaces
Submitted by
anonymous
-
8 years ago
-2
Valid Email
ECMAScript (JavaScript)
Use this Regex for server-side validation also with some slight modifications like so for .NET -- @\w+([-+.']\w+)@\w+([-.]\w+)\.[a-zA-Z0-9]{2,6}(-.{2,6})*;
Submitted by
Fred Scales
-
9 years ago
-1
UK Postcode Validation
ECMAScript (JavaScript)
Matches all valid, current UK Postcodes, including Girobank and non-geographic postcodes, irrespective of whether they contain a space. It does not include overseas territories. Adapted from the BS7666 postcode rules at http://www.cabinetoffice.gov.uk/govtalk/schemasstandards/e-gif/datastandards/add...
Submitted by
Ti Marner
-
9 years ago
1
regular expression to replace except text from html tags
ECMAScript (JavaScript)
expression to look for words in innerText & not in html tags as id or class or style name
Submitted by
umarfarukh
-
10 years ago
1
gh
ECMAScript (JavaScript)
no description available
Submitted by
ghb
-
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
-
9 years ago
1
spaces in parenthesis
ECMAScript (JavaScript)
Eliminate spaces in the inner part of parenthesis.
Submitted by
Luis Colorado
-
9 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
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
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
1
Matching an Email
ECMAScript (JavaScript)
no description available
Submitted by
appsunited
-
10 years ago
1
HTML Anchor <a> Tag Grabber(overcome newlines)
ECMAScript (JavaScript)
no description available
Submitted by
Namikaze Ray a.k.a Pendecosen
-
9 years ago
1
URL domain test
ECMAScript (JavaScript)
tests to find if ("google.com") is the domain part of the URL
Submitted by
anonymous
-
9 years ago
0
get params from json
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
...
165
166
167
168
169
...
181
US Currency Format
13
Regular Expression
ECMAScript (JavaScript)
/
^
\$
?
(
[
0
-
9
]
{1,3}
,
(
[
0
-
9
]
{3}
,
)*
[
0
-
9
]
{3}
|
[
0
-
9
]
+
)
(
\.
[
0
-
9
]
[
0
-
9
]
)?
$
/
mg
Open regex in editor
Description
no description available
Submitted by
anonymous
-
8 years ago