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
Community Patterns
Search among 11,820 community submitted regex patterns...
0
Exact match of a word in a phrase: the phrase must be composed by a single word
PCRE (PHP <7.3)
It will match if it's present only the exact word in a phrase, without any other words in the same sentence
Submitted by
anonymous
-
a year ago
0
Audio and Video files
Python
Match *audio *and *video *files in python
Submitted by
anonymous
-
a year ago
0
currencies Question
Python
怎么在匹配 30p, 500m时,不会匹配到文章中的年份和百分比数字
Submitted by
anonymous
-
a year ago
0
Remplazar contenido
.NET 7.0 (C#)
Remplazar contenido
Submitted by
anonymous
-
a year ago
0
Terraform Service Name
Golang
Useful for validating services in TF
Submitted by
Nick Zaccardi
-
a year ago
0
Get everything between two characters
Python
Get everything between two characters
Submitted by
Danarvelini
-
a year ago
(Last modified a year ago)
0
dmidecode parse
Python
Used to match all parts of output from dmidecode.
Submitted by
Paddy3118
-
a year ago
0
TAP Result Log issue
.NET 7.0 (C#)
This might help you to not miss some because the (.....), is dependent on the length.
Submitted by
Darwin Subramaniam
-
a year ago
(Last modified a year ago)
0
FG – VIP details extraction
Python
FG – Extract details of each VIP address from VIP addresses configuration block
Submitted by
anonymous
-
a year ago
0
Enum map to test cases
.NET 7.0 (C#)
.
Submitted by
DenKu1
-
a year ago
0
12 digit mobile number regex
Python
The regex matches for national or international phone number of up to 15 digits if it includes the country code
Submitted by
anonymous
-
a year ago
(Last modified 9 months ago)
0
Fix property names with spaces generated by odata2poco
PCRE (PHP <7.3)
Run in notepad++, replace with \u$1
Submitted by
anonymous
-
a year ago
0
US Stock Exchange symbols
Python
Regex for Telegram Bot
Submitted by
Lucas Zurverra
-
a year ago
0
Test molecule coverage
Python
Regex to test covered tests
Submitted by
Florian Toulemont
-
a year ago
0
myRegEx
.NET 7.0 (C#)
myRegEx
Submitted by
Avinash
-
a year ago
0
Validate Date Represented by Integer 1900 - 2099
PCRE (PHP <7.3)
Very simple validation expression that will validate a date in the range of 19000101 through 20991231. These formats are very popular for partitioning and representing dates as Long values or Integers. This does not check for Leap year values, or the months with varying number of days. Please Note:...
Submitted by
Edward Rush
-
a year ago
0
parse sqf defines
Python
parsing armas sqf preprocessor defines
Submitted by
anonymous
-
a year ago
0
Sanitize percentage input into bare real number
.NET 7.0 (C#)
Turn "123,456 %" into just "123.456"! Mainly for use in C# to parse percentage as string into double. Strip away whitespace Replace comma with decimal point Only allow valid numeric input multiple commas or decimal points won't match...
Submitted by
Moravuscz
-
a year ago
0
Semantic Version (semver)
.NET 7.0 (C#)
.NET version of the Python regex found on https://semver.org/
Submitted by
semver.org,Jeff Jacobson
-
a year ago
0
Variable address condition
Java 8
This regex matches the variable address condition like: [1,100] >= 1 && [1,111] <= 2
Submitted by
Texx
-
a year ago
1
...
575
576
577
578
579
...
591
Mathematical Expressions
-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