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...
0
numbers
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Two or More Zeros
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Two or More Zeros
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Integer (avoid more than 1 zero)
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Company check
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
0
Get up to the first 10 lines of a string
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Unsigned Integer or Maximal Two-Digits Floating Point Input
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Unsigned Integer or Maximal Two-Digits Floating Point Input
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Base 64
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
international phonenumber parsing
PCRE (PHP <7.3)
based on (slightly) adopted regex from https://stackoverflow.com/a/20971688/1104502 It parses three groups: international code phone-number extension...
Submitted by
spex66
-
7 years ago
0
a
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
0
Remove words starting with a dot in a comma separated word list
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
0
Kenyan phone number
PCRE (PHP <7.3)
Match against number sequence using international +254 or local 0 prefix.
Submitted by
m8r1x
-
7 years ago
0
facebook profile url
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
0
FIle Name Compliant
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Match ACSS components [main test].
PCRE (PHP <7.3)
Multiline regex for case when combinator is provided.
Submitted by
anonymous
-
7 years ago
0
Match numbers with length b\w 6-12
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Validation rules
PCRE (PHP <7.3)
no description available
Submitted by
Slava Krampetz
-
7 years ago
0
Extract titles from m3u playlist
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Match url based on specific path values
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
...
533
534
535
536
537
...
900
Community Library Entry
-2
Regular Expression
PCRE (PHP <7.3)
/
#
https://regex101.com/r/fP1oQ6/2
(?(DEFINE)
#
(?<W>
\s
*
)
(?<V>
\d
+
(?:
\.
\d
+
)?
(?&W)
)
(?<S>
[
-+
]
?
)
(?<O>
(?&W)
[
-+*
\/
]
(?&W)
)
(?<E>
(?&S)
(?:
(?&V)
|
\(
(?&W)(?&E)(?&W)
\)
)
(?:
(?&O)(?&E)
)?
)
#
)
#
(
(?&E)
)
/
xgJ
Open regex in editor
Description
ValidatesMathematical Expressions. Ignores whitespace. Includes parenthesis matching.
Submitted by
Jeremy Friesen
-
9 years ago