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 7,880 community submitted regex patterns...
-2
valid windows file name
ECMAScript (JavaScript)
no description available
Submitted by
Mitacha
-
10 years ago
-2
link
Python
no description available
Submitted by
NTP-[SADAS]
-
10 years ago
-2
Comma-separated numbers with ranges
ECMAScript (JavaScript)
no description available
Submitted by
Eugene
-
10 years ago
-2
five word capture
Python
no description available
Submitted by
anonymous
-
9 years ago
-2
match only words consisting of 3 repeated letters, e.g. lllkkk
Python
no description available
Submitted by
kali
-
9 years ago
-2
python bracketed text
Python
why doesn't this match text in brackets?
Submitted by
anonymous
-
9 years ago
-2
Match website - http:|https://i.imgur.com
ECMAScript (JavaScript)
no description available
Submitted by
ghrifter
-
9 years ago
-2
Match Content-Range response header
ECMAScript (JavaScript)
Matches the Content-Range response header format -[end]/[total|*]
Submitted by
mdezem
-
9 years ago
-2
Host and domains
Python
no description available
Submitted by
anonymous
-
9 years ago
-2
IPv4
Python
allows for all legal IPv4 addresses
Submitted by
anonymous
-
9 years ago
-2
Match words in a string
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
-2
finds the instance of two or more repeating letters
Python
no description available
Submitted by
cp0153
-
9 years ago
-2
domain name
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
-2
SQL Injection
ECMAScript (JavaScript)
SQL injection regEx pattern
Submitted by
Darshan Patil
-
9 years ago
-2
adsf
Python
adfadfad
Submitted by
anonymous
-
9 years ago
-1
for checking code number 1111/111111111
Python
no description available
Submitted by
dejv
-
10 years ago
-1
sfafagergfwefe323
Python
no description available
Submitted by
anonymous
-
10 years ago
-1
Alternative With Capture Groups
Python
Capture alternative items matching end of lines country codes
Submitted by
Branden
-
9 years ago
-1
date format for year 2000 above
Python
no description available
Submitted by
anonymous
-
9 years ago
-1
bibtex entries
Python
match bibtex entries
Submitted by
Sixue Qin
-
9 years ago
1
...
261
262
263
264
265
...
394
phone regex
2
Regular Expression
ECMAScript (JavaScript)
/
(?=
.
*
?
\d
{3}
(
|
-
|
.
)?
\d
{4}
)
(
(?:
\+
?
(?:
1
)
(?:
\1
|
\s
*
?
)
)?
(?:
(?:
\d
{3}
\s
*
?
)
|
(?:
\(
(?:
\d
{3}
)
\)
\s
*
?
)
)
\1
?
(?:
\d
{3}
)
\1
?
(?:
\d
{4}
)
(?:
\s
*
?
(?:
#
|
(?:
ext
\.
?
)
)
(?:
\d
{1,5}
)
)?
)
\b
/
gi
Open regex in editor
Description
Match phone number with extensions or not
Submitted by
Mélissa Dumont
-
10 years ago