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 2,200 community submitted regex patterns...
0
conditional lookahead (IF (pat1) or (pat2) THEN match (pat1) and/or (pat2) box
Python
Python does not support conditionals using lookaround, even though Python does support lookaround outside conditionals. (?(?=regex) then|else) is illegal in python (?=regex)then|(?!regex)else - this works. madness details in the test strings
Submitted by
PeteC
-
2 years ago
0
Email Validation
Python
It won't recognize if the local-part is just one character like t@somedomain.com
Submitted by
anonymous
-
2 years ago
0
single character v2?
Python
find any standalone, non-white space character
Submitted by
anonymous
-
2 years ago
0
gubas2549-knju@force.com
.NET 7.0 (C#)
gubas2549-knju@force.com
Submitted by
Welcome to Gboard clipboard, any text you copy will be saved here.
-
2 years ago
0
Script Tag Json
.NET 7.0 (C#)
asd
Submitted by
anonymous
-
2 years ago
0
Airtel Unlimited Plan
Python
Airtel Unlimited Plan
Submitted by
starkm42
-
2 years ago
0
List of email validation
.NET 7.0 (C#)
Validate a list of emails separated by a semicolon. Supports emails with accents and other alphabets. Valid email: Abc@example.com;Abc.123@example.com;user+mailbox/department=shipping@example.com;éüöä^0@émäil.côm !#$%&'*+-/=?^_`.{|}~@example.com;"Abc@def"@example.com;"Fred Bloggs"@example.com;"Joe.\...
Submitted by
Mib
-
2 years ago
0
NDC
.NET 7.0 (C#)
parses all valid NDC codes with or without hyphens
Submitted by
joe.cox@fortyau.com
-
2 years ago
0
Remove Trailing Number
Python
Regex for the gvsbuild tool to remove a trailing number from a project name.
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
0
Migrate infoboxes in AWB: Music phase 1
.NET 7.0 (C#)
Turn comma separated values in three deprecated parameters into template calls. (timestamp not considered yet)
Submitted by
anonymous
-
2 years ago
0
Migrate infoboxes in AWB: Music phase 3
.NET 7.0 (C#)
Insert "|tracks=" before the first occurrence
Submitted by
anonymous
-
2 years ago
0
Migrate infoboxes in AWB: Music phase 2
.NET 7.0 (C#)
Remove deprecated parameters
Submitted by
anonymous
-
2 years ago
0
pens
Python
testing
Submitted by
anonymous
-
2 years ago
0
71871164
Python
Stack overflow example
Submitted by
anonymous
-
2 years ago
0
篩選MP Log Day
.NET 7.0 (C#)
篩選MP Log Day
Submitted by
anonymous
-
2 years ago
0
原神圣遗物OCR副属性(中文简体)
Python
用于游戏“原神”的圣遗物OCR结果中的副属性识别
Submitted by
Wansn
-
2 years ago
0
Phone number regex
Python
REGEX to test various phone numbers
Submitted by
Drew Recker
-
2 years ago
0
#value # value
Python
account for comments
Submitted by
anonymous
-
2 years ago
0
CVE-2021-31805 (s2-062)
Python
\%[\s|\\r|\\n]\{[\s|\\r|\\n](?:[\s|\\r|\\n]*\(\#+\=+\)\.)
Submitted by
anonymous
-
2 years ago
0
LinkTree
Python
just to find linktree links in poirot
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
1
...
92
93
94
95
96
...
110
Phone number regex
0
Regular Expression
Python
r"
^\s
*
(?:
\+
?
(
\d
{1,3}
)
\s
*
)?
(
\s
?
\(
?
\d
{2}
\)
\s
?
)?
(
\s
?
[
-.
(
]
*
(
\d
{3}
)
[
-.
)
]
*
)?
(
(
\d
{3,4}
)
[
-.
]
*
(
\d
{2,5}
)
(?:
[
-.x
]
*
(
\d
+
)
)?
)
\s
*
$
"
gm
Open regex in editor
Description
REGEX to test various phone numbers
Submitted by
Drew Recker
-
2 years ago