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,000 community submitted regex patterns...
1
-
ECMAScript (JavaScript)
hjk
Submitted by
hjk
-
9 years ago
1
regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
select * deio
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Singapore Phone
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
sample
PCRE (PHP <7.3)
sample regression
Submitted by
anonymous
-
9 years ago
1
camelCase to hyphen-case
ECMAScript (JavaScript)
Note that title case (TitleCase) will have leading hypens (-title-case)
Submitted by
cyberbit
-
9 years ago
1
billions and billions of $$$
PCRE (PHP <7.3)
optional commas with 2 digit cents
Submitted by
bob
-
9 years ago
1
Instagram Regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Parse .so libraries from binary file
ECMAScript (JavaScript)
Multi-occurance / Multiline Match and list all ".so" files from Android APK binary.
Submitted by
Mayur Pipaliya
-
9 years ago
1
HP3ParShowVVLineParse
PCRE (PHP <7.3)
parses the ssh output of a 3par SSH showvv command
Submitted by
3nbin
-
9 years ago
1
email for .com & .co.in
ECMAScript (JavaScript)
email validation
Submitted by
Chanti
-
9 years ago
1
Comments in code?
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
LJ Poll simple result parser
PCRE (PHP <7.3)
Simple parser for LiveJournal poll results.
Submitted by
dimio
-
9 years ago
1
VehicleNumber
PCRE (PHP <7.3)
Local Indian Vehicle Number
Submitted by
anonymous
-
9 years ago
1
Finding Orphaned SIDs
PCRE (PHP <7.3)
Regex to find orphaned SIDs within the active directory database.
Submitted by
anonymous
-
9 years ago
1
find all between curved bracets
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Extract Laravel 5 service providers content
PCRE (PHP <7.3)
In intend to dynamically add service providers in the app.php config file
Submitted by
Jonathan Bonnefoy
-
9 years ago
1
Match all invalid PHP variable characters
PCRE (PHP <7.3)
This can be used in a preg_replace function to take any string value and strip all invalid characters to make a valid PHP variable
Submitted by
Deathnerd
-
9 years ago
1
Match empty tags pair
PCRE (PHP <7.3)
to find empty (or fill with space) tags pair ex matching : works with multiline
Submitted by
http://stackoverflow.com/a/34423418/381149
-
9 years ago
1
...
656
657
658
659
660
...
900
Community Library Entry
1
Regular Expression
PCRE (PHP <7.3)
/
^\s
*
(
[
\s\S
]
+
?
)
(?:
\s
+
as
\s
+
(
[
\s\S
]
+
?
)
)?
(?:
\s
+
group
\s
+
by
\s
+
(
[
\s\S
]
+
?
)
)?
(?:
\s
+
disable
\s
+
when
\s
+
(
[
\s\S
]
+
?
)
)?
\s
+
for
\s
+
(?:
(
[
\$
\w
]
[
\$
\w
]
*
)
|
(?:
\(
\s
*
(
[
\$
\w
]
[
\$
\w
]
*
)
\s
*
,
\s
*
(
[
\$
\w
]
[
\$
\w
]
*
)
\s
*
\)
)
)
\s
+
in
\s
+
(
[
\s\S
]
+
?
)
(?:
\s
+
track
\s
+
by
\s
+
(
[
\s\S
]
+
?
)
)?
$
/
Open regex in editor
Description
no description available
Submitted by
anonymous
-
9 years ago