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 17,920 community submitted regex patterns...
-2
Name/Surname
ECMAScript (JavaScript)
Regex to constrain a text to have at least 2 strings. Compatible with 2nd-3rd-Nth names/surnames.
Submitted by
BigL
-
9 years ago
-2
match commas between sets or members, but not inside members.
Python
matches only those commas that are between sets, or between members of a set. does not match commas that are inside members.
Submitted by
Amrit Kohli
-
9 years ago
-2
Validating comma delimited strings for whitespaces & extra commas
ECMAScript (JavaScript)
Validating comma delimited strings for whitespaces & extra commas -- +(,()+){0,}
Submitted by
Cyril Mathew
-
9 years ago
-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
...
532
533
534
535
536
...
896
Community Library Entry
-1
Regular Expression
PCRE (PHP <7.3)
/
(
(?<raute>
#
(?<raute_content>
[^
\n
]
*
)
)
|
(?<doubleslashes>
\/\/
(?<doubleslashes_content>
[^
\n
]
*
)
)
|
(?<block>
\/\*
(?<block_content>
[^
*
]
+
|
\*
(?!
\/
)
)*
+
\*\/
)
)
/
gm
Open regex in editor
Description
Find Comments starting with # or //. Also finds Commentblocks starting with /* and ending with */.
Submitted by
Candyman1332
-
9 years ago