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,020 community submitted regex patterns...
1
US Phone Number
ECMAScript (JavaScript)
The way I like it formatted
Submitted by
@mattbontrager
-
9 years ago
2
string contains
PCRE (PHP <7.3)
no description available
Submitted by
mgaus
-
9 years ago
1
Full Name
ECMAScript (JavaScript)
cheking full name e.g. Mathias d'Arras Martin Luther King, Jr. Hector Sausage-Hausen
Submitted by
Aymen
-
9 years ago
5
ipv6
PCRE (PHP <7.3)
Match an ipv6 address
Submitted by
Frusty
-
9 years ago
5
North American Phone Number
ECMAScript (JavaScript)
Validate North American phone numbers with capture groups for the Area Code, Exchange Code, Line Number, and Extension.
Submitted by
AaronBoots
-
8 years ago
-1
Finds <font> tag
PCRE (PHP <7.3)
Useful for cleaning old html code from tags
Submitted by
anonymous
-
11 years ago
1
get image with classname
ECMAScript (JavaScript)
no description available
Submitted by
@cloverink
-
11 years ago
1
Number, comma and dot
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
(Last modified a year ago)
1
SSN
ECMAScript (JavaScript)
no description available
Submitted by
jay johnson
-
11 years ago
2
US and Canada Regex
ECMAScript (JavaScript)
A zipcode regex for validation of both US and Canada
Submitted by
Kyle M.
-
11 years ago
1
Phone numbers matcher
PCRE (PHP <7.3)
no description available
Submitted by
Oleksandr Sochka
-
11 years ago
3
po box
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
11 years ago
2
Unicode url sanitising
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
2
Url with <a> (param) validation
PCRE (PHP <7.3)
https://www.google.com http://www.google.net/hello https://www.google. http://www.google./hello above url matching with given regex...
Submitted by
Duleep Dissanayaka
-
11 years ago
4
Repeated words (JS)
ECMAScript (JavaScript)
no description available
Submitted by
paconaranjo
-
11 years ago
0
Matches when the string does not contain an exact word
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
Regex Formula for matching 2 letter Prefix URL's
PCRE (PHP <7.3)
I am trying to write a Regex formula that will match to all URL's with specifically 2 letter prefixes. I have a list of close to 1000 websites, and I need a formula that will collect data from any sites that start with "..".sporttu.com. For example, I want it to match to sites like ca.sporttu and ...
Submitted by
MikeRo
-
10 years ago
5
RegEx to validate oAuth 2.0 redirect_uri
ECMAScript (JavaScript)
A simple RegEx rule which should validate redirect_uri for oAuth2
Submitted by
Vlad Miller
-
10 years ago
3
Fetch data between curly braces with plain text
PCRE (PHP <7.3)
This regex fetch only the data between content in curly braces (first occurrence, use preg_match_all in php, for all occurrences). This is useful for bad JSON files with wrong format or text between.
Submitted by
shakaran87
-
10 years ago
1
Find Word on A Text
PCRE (PHP <7.3)
This expression find a word in a text without limitation of "\b" statement
Submitted by
theShadow
-
10 years ago
1
...
10
11
12
13
14
...
901
Community Library Entry
0
Regular Expression
PCRE (PHP <7.3)
/
^
(
@
)?
(
https
?
:
)?
(
\/\/
)?
(
www
\.
)?
(
(
[
a
-
z0
-
9
\p{L}
]
[
a
-
z0
-
9
\p{L}
-
\.
]
{1,61}
)
(
[
a
-
z0
-
9
\p{L}
]
\.
[
a
-
z0
-
9
\p{L}
]
[
a
-
z
\p{L}
-
]
)*
(
[
a
-
z0
-
9
\p{L}
]
)+
\/
)?
(
#!
\/
)?
(
[
a
-
z0
-
9
]
[
a
-
z0
-
9.
]
{1,61}
)
(
[
\/
|
\?
]
.
*
)*
$
/
gmi
Open regex in editor
Description
unicode, IDN, usual domains
Submitted by
anonymous
-
8 years ago