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
Simple lookahead
PCRE (PHP <7.3)
https://docs.racket-lang.org/guide/Looking_Ahead_and_Behind.html
Submitted by
anonymous
-
7 years ago
0
1
PCRE (PHP <7.3)
1
Submitted by
anonymous
-
7 years ago
0
Match filenames New
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
common
ECMAScript (JavaScript)
these are my common regexp
Submitted by
muma
-
7 years ago
0
common
ECMAScript (JavaScript)
these are my common regexp
Submitted by
muma
-
7 years ago
0
Templaxy
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
elevator openings
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
1
RNA
PCRE (PHP <7.3)
French association register number RNA
Submitted by
Maxime
-
7 years ago
1
SIRET
PCRE (PHP <7.3)
Business register number for France SIRET
Submitted by
Maxime
-
7 years ago
1
SIREN
PCRE (PHP <7.3)
SIREN for french business register number
Submitted by
Maxime
-
7 years ago
1
Match on phone number in any standard format
PCRE (PHP <7.3)
Match on a phone number in ANY standard phone number format.
Submitted by
KyleV
-
7 years ago
1
Match on Valid IP
PCRE (PHP <7.3)
Match on VALID IP address anywhere in string.
Submitted by
KyleV
-
7 years ago
0
Étude - Atomic Grouping
PCRE (PHP <7.3)
no description available
Submitted by
PHILIPPE Vincent
-
7 years ago
0
Étude - Atomic Grouping
PCRE (PHP <7.3)
no description available
Submitted by
PHILIPPE Vincent
-
7 years ago
0
XS command
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Étude - Positive Lookbehind
PCRE (PHP <7.3)
no description available
Submitted by
PHILIPPE Vincent
-
7 years ago
0
Search z-index: -1
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
0
Android Build Number
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
-1
Extract brazilian DDD and phone number
PCRE (PHP <7.3)
Extract brazilian DDD and phone number
Submitted by
Anderson Rodrigues
-
7 years ago
1
...
531
532
533
534
535
...
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