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 15,020 community submitted regex patterns...
1
FFXIV Lodestone Character profile
PCRE (PHP <7.3)
Parses full url up to character page. Ignores http:// and anything after character ID
Submitted by
JaveLiner
-
9 years ago
1
match non-alphanumeric in string
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
word matcher
ECMAScript (JavaScript)
no description available
Submitted by
Cengizism
-
8 years ago
1
Strip Specific HTML Tags
PCRE (PHP <7.3)
Strip specific HTML tags from a string—opposite of PHP's strip_tags(). Replace letter 'p' with your tag name. Using PHP preg_replace(), example: preg_replace('/(]>)(.?)()|(]*>)/i', '$2', $string);
Submitted by
Zachary Beschler
-
8 years ago
1
US Telephone Number
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
Country Code
PCRE (PHP <7.3)
no description available
Submitted by
SB
-
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
1
Regex to match any JSON value with fewer steps possible
PCRE (PHP <7.3)
If you find... any JSON value that should be matched but isn't, any JSON value that should NOT be matched but is or simply a way to match the values with fewer steps... please, let me know.
Submitted by
anonymous
-
5 years ago
-1
Finds <font> tag
PCRE (PHP <7.3)
Useful for cleaning old html code from tags
Submitted by
anonymous
-
11 years ago
0
Improved regex101 ID grabber (fixed)
PCRE (PHP <7.3)
no description available
Submitted by
Oleksandr Sochka
-
10 years ago
0
Unicode alpha-numeric regex
PCRE (PHP <7.3)
Tests for all unicode language characters and number. Excludes any sentence joining characters etc.
Submitted by
Jamie
-
10 years ago
0
Get any word before specific string
Python
no description available
Submitted by
anonymous
-
9 years ago
0
CSS url()
PCRE (PHP <7.3)
Matches a valid CSS3 url() property
Submitted by
sciyoshi
-
9 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
Table Purgatory
PCRE (PHP <7.3)
A regex to find all nowrap text occurrences and name all the groups involved in preparation for a replacement pass
Submitted by
Joe Hacobian
-
11 years ago
1
Get inside single/double quotes
PCRE (PHP <7.3)
Get everything inside single/double quotes and ignoring escaped ones
Submitted by
Jerry
-
11 years ago
1
email
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
1
...
704
705
706
707
708
...
751
Search number in comma separated list
1
Regular Expression
ECMAScript (JavaScript)
/
(
(?!
[
0
-
9
]
)
.
{0,1}
(
12
)
(?!
[
0
-
9
]
)
.
{0,1}
)
|
(
^
12
)
[
,
\s
]
/
g
Open regex in editor
Description
Search each occurence of one number in a comma separated list string
Submitted by
Tommaso frazzetto
-
8 years ago