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,240 community submitted regex patterns...
2
Ansible Host Var checking
Python
We had an issue where the "hosts=some_var" value could cause mass deployments if the wrong value was passed through. Specifically a comma with nothing surrounding it (i.e. "hosts=,"). This regex will allow us to fail when certain characters are present.
Submitted by
anonymous
-
7 years ago
1
descr
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
images
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
content
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
price
PCRE (PHP <7.3)
no description available
Submitted by
marina
-
7 years ago
0
title
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
rcf
PCRE (PHP <7.3)
drcfkjr
Submitted by
me
-
7 years ago
0
Sku from filename
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Everything until
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
get rid of closing html tags
PCRE (PHP <7.3)
Example: RegEx: \W\W[[:lower:]]+\W Provides full match
Submitted by
h0neybadg3r
-
7 years ago
1
import匹配
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
1
traceroute
Python
no description available
Submitted by
anonymous
-
7 years ago
0
Irc Reply Codes
PCRE (PHP <7.3)
RFC 1459 and 2812 Reply Codes
Submitted by
anonymous
-
7 years ago
0
E-mail
PCRE (PHP <7.3)
no description available
Submitted by
lexus27.khv@gmail.com
-
7 years ago
0
Validate Number
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Get rid of extra zeros in ip addresses.
PCRE (PHP <7.3)
0127.000.00.01 turns to 127.0.0.1
Submitted by
anonymous
-
7 years ago
0
Datum
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
FunAndRace - Check Old Category Url
PCRE (PHP <7.3)
no description available
Submitted by
jordan
-
7 years ago
1
Replace sinon stub configuration with ts-mockito equivalent
ECMAScript (JavaScript)
Replaces sinon.js stubs configuration with similar behaviour achievied using the ts-mockito library
Submitted by
anonymous
-
7 years ago
0
class names within a certain folder
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
...
471
472
473
474
475
...
762
832821(1)
1
Regular Expression
Python
r"
^
(?:
[
0
]
$
)?
(
(?:
\+
|
\-
)?
[
1
-
9
]
{1,3}
(?:
[
0
-
9
]
{1,2}
)?
(
,
[
0
-
9
]
{3}
)*
?
)?
$
"
Open regex in editor
Description
no description available
Submitted by
anonymous
-
8 years ago