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...
-2
Simple Username Pattern
PCRE (PHP <7.3)
a simple username pattern
Submitted by
Saeed Tabrizi
-
9 years ago
-2
DOTNET
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
-2
Get begining of url (subdomain)
PCRE (PHP <7.3)
In between 2 delimiters
Submitted by
anonymous
-
9 years ago
-2
match unescaped quotes
Python
no description available
Submitted by
anonymous
-
9 years ago
-2
Get the HTML table tag and all content from within
PCRE (PHP <7.3)
no description available
Submitted by
Pedro Marcelo de Sá Alves
-
9 years ago
-2
Answer to 10
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
-1
Simple replacing. Replaced first folder in path to file.
PCRE (PHP <7.3)
Used with Java regexp. F.e. you can use replaceAll("regexp", "filePath").
Submitted by
E.ch.
-
11 years ago
-1
Match inside square brackets without brackets
PCRE (PHP <7.3)
no description available
Submitted by
DanSkeel
-
10 years ago
-1
RegExp black list example usage
PCRE (PHP <7.3)
no description available
Submitted by
Vadim Markovtsev
-
10 years ago
-1
Grep the daily purchase price for 250 g gold from http://www.scheidean
PCRE (PHP <7.3)
Grep the daily purchase price for 250 g gold from http://www.scheideanstalt.de/aktuelle-ankaufskurse/ankaufskurse-barren/: gold=$(wget -q -O- http://www.scheideanstalt.de/aktuelle-ankaufskurse/ankaufskurse-barren/ | grep "250 g" | sed -r 's/^.250 g]>([0-9]+)\.([0-9]+[0-9]+[0-9]+)\,([0-9]+[0-9]+).*$...
Submitted by
MH
-
9 years ago
-1
website
PCRE (PHP <7.3)
If needed to test entered website
Submitted by
Max Shishkov
-
9 years ago
-1
mongo db email validation
Python
email validation based on the restrictions for entering email adresses into a mongo db email field.
Submitted by
levire.com
-
9 years ago
-1
Phone number validator
Python
Validates all possible international phone number formats. Icludes almoust all of the international call prefixes, all of the differing lenghts of country codes. The parts of number will always be recognised correctly. Additionally you could add limitations of the phone number's lenght
Submitted by
Ādams Muzikants
-
9 years ago
-1
IP address regex of IPV4
PCRE (PHP <7.3)
The given regex matches the IPV4 address of given ip address string.
Submitted by
Ayush
-
9 years ago
-1
Street, City, State|State Code, Zip
PCRE (PHP <7.3)
Matches the following format of US address: Street, City, State|State Code, Zip Example: 765757 North Nevada Avenue, Colorado Springs, CO, 80918
Submitted by
Chandan Kumar Sinha
-
9 years ago
-1
localhost match range ip with port number
Python
Matches all ips that points to localhost like, optionally capturing port number: 127.X.X.X and 127.X.X.X:
Submitted by
Rodrigo M. A.
-
9 years ago
-1
شش
Python
no description available
Submitted by
anonymous
-
9 years ago
-1
Australian local and international mobile validation
ECMAScript (JavaScript)
no description available
Submitted by
Damien Capocchi
-
9 years ago
-1
Hostname validator
PCRE (PHP <7.3)
Validates the format of IPv4/IPv6 hostnames as well as domain names.
Submitted by
anonymous
-
9 years ago
-1
Replace comma separated decimals (comma instead of point)
ECMAScript (JavaScript)
Matches, line by line, a comma separated list of decimal numbers with comma as decimal character (Spanish way) Produces a list of comma separated pairs (space separated innermost) of decimal numbers with point as decimal character (English way)
Submitted by
Bruno A. Castro
-
9 years ago
1
...
532
533
534
535
536
...
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