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
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 9,360 community submitted regex patterns...
6
ID003 device info
PCRE (PHP <7.3)
no description available
Submitted by
sasjaq
-
11 years ago
5
FIlename sanitization regular expression
PCRE (PHP <7.3)
Useful for filename sanitization. Matches invalid filename characters. Can be used in preg_replace() calls.
Submitted by
FractalizeR@yandex.ru
-
9 years ago
1
FQDN Fully Qualified Domain Name
PCRE (PHP <7.3)
Allow only two or more labels. Fix deprecated FQDN regexp not passing on test "dicas-l.com.br"
Submitted by
Rafael Justo and Mauro Trajber
-
9 years ago
6
Validate Birth Date (d/m/Y)
PCRE (PHP <7.3)
From 1970 to 2015 Replace: (\d{4})$ for (19[7-9]\d|200-1)$
Submitted by
Valdeir Santana
-
9 years ago
4
Mask credit card
PCRE (PHP <7.3)
no description available
Submitted by
Albert Paris
-
9 years ago
2
UK phone number
PCRE (PHP <7.3)
UK phone number
Submitted by
Andrea SonnY
-
9 years ago
9
Fiddler raw body to PHP array
PCRE (PHP <7.3)
no description available
Submitted by
garsax
-
9 years ago
7
Max - URL Extract
PCRE (PHP <7.3)
no description available
Submitted by
Ayush
-
8 years ago
4
Strip out domain extensions except for Microsoft .net technologies.
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
4
YouTube Grabber Cleanup
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
1
phone test
PCRE (PHP <7.3)
no description available
Submitted by
cool guy
-
10 years ago
2
42 post regex
PCRE (PHP <7.3)
Hosts regex for 42 school (france)
Submitted by
Kerosene2000
-
10 years ago
0
Match all html tags
PCRE (PHP <7.3)
no description available
Submitted by
Kostas Trichas
-
10 years ago
3
everything that doesn't match .gitignore at the end
PCRE (PHP <7.3)
must match: selection/nl/example.xml selection/example.xml selection/blabla.txt selection/es/ ...
Submitted by
anonymous
-
10 years ago
7
[A-Za-z\x{0600}-\x{06FF}\x{1000}-\x{1021}_-][-\w]*
PCRE (PHP <7.3)
A-Za-z\x{0600}-\x{06FF}\x{1000}-\x{1021}_-*
Submitted by
[A-Za-z\x{0600}-\x{06FF}\x{1000}-\x{1021}_-][-\w]*
-
10 years ago
6
Extract style
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
7
validate US (5 & 9 digit) ZipCodes and CA PostalCodes
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
5
Numeric values greater than zero with decimal
PCRE (PHP <7.3)
Pattern that only accept numeric value and greater than zero with up to decimal places ( you can change the decimal places just replace {1,2} depend on how many decimal places you like
Submitted by
Eugene To
-
9 years ago
7
Remove Widows (PHP)
PCRE (PHP <7.3)
Adds a non-breaking space between the last two words of sentences
Submitted by
herkulano
-
9 years ago
4
html tags
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
...
3
4
5
6
7
...
468
T-SQL find comments in script
1
Regular Expression
.NET 7.0 (C#)
@"
(?<comment>
/
\*
.
*
?
\*
/
|
\-\-
.
*
?
$
)
"
gmis
Open regex in editor
Description
Finds the comments in a t-sql (tsql) script
Submitted by
Paw Jershauge
-
5 months ago