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 13,900 community submitted regex patterns...
1
episode
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
test
PCRE (PHP <7.3)
this is a test
Submitted by
anonymous
-
9 years ago
1
email regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Grab valid LAN IPs
PCRE (PHP <7.3)
no description available
Submitted by
jchd
-
9 years ago
1
Empty string test
PCRE (PHP <7.3)
Regular for testing empty strings for validation purpose
Submitted by
anonymous
-
9 years ago
1
Camel case string splitter
PCRE (PHP <7.3)
Splits CamelCase single string into separate strings. Can be used for transforming CamelCase to snake_case. Also works with numbers and capital letter shortcuts (e.g SomeWTFVariable1).
Submitted by
Nicolas
-
9 years ago
1
json comment - first attempt
Python
no description available
Submitted by
Mark
-
9 years ago
1
Name validator
PCRE (PHP <7.3)
Validates a first middle and last name with hyphens as a single string
Submitted by
Keith Johnson
-
9 years ago
1
test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
testscript
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
URL Path Validation
PCRE (PHP <7.3)
Validates an url path that must begin with '/' and not contain special characters or repeated '/' [forward slashes]
Submitted by
rochmit10
-
9 years ago
1
1
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Sign before number
PCRE (PHP <7.3)
no description available
Submitted by
Albion Liçi
-
9 years ago
1
Trick empty char
PCRE (PHP <7.3)
no description available
Submitted by
CROSP
-
9 years ago
1
PARSE NUMBERS
PCRE (PHP <7.3)
any int, any int with decimal any int with comma delimited any int with comma delimited and decimal
Submitted by
amaroyche
-
9 years ago
1
1
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Simple global regex
Python
Regex for finding tempratures in a text
Submitted by
anonymous
-
9 years ago
1
wso list
Python
no description available
Submitted by
anonymous
-
9 years ago
1
reddit username
PCRE (PHP <7.3)
no description available
Submitted by
l3d00m
-
9 years ago
1
teste
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
...
515
516
517
518
519
...
695
foreach
2
Regular Expression
PCRE (PHP <7.3)
/
{
[
\t
]
*
foreach
[
\t
]
*
\$
(
_
*
[
A
-
Za
-
z
]
+
[
A
-
Za
-
z0
-
9_
]
*
)
[
\t
]
*
as
[
\t
]
*
\$
(
_
*
[
A
-
Za
-
z
]
+
[
A
-
Za
-
z0
-
9_
]
*
)
(?:
[
\t
]
=>
[
\t
]
*
\$
(
_
*
[
A
-
Za
-
z
]
+
[
A
-
Za
-
z0
-
9_
]
*
)
)?
[
\t
]
*
}
(
.
*
)
{
[
\t
]
*
\/
foreach
[
\t
]
*
}
/
Uis
Open regex in editor
Description
no description available
Submitted by
anonymous
-
9 years ago