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,040 community submitted regex patterns...
0
email validation
Python
no description available
Submitted by
Yerko Palma
-
9 years ago
0
c
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
(\s)(\d{9})(\s)</
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
Remove / delete / strip style attribute from html tags
PCRE (PHP <7.3)
This one removes ALL attributes if "style" is found. See my other expression to only remove the style.
Submitted by
socialblogsitewebdesign.com
-
9 years ago
0
Email parser, also distorted forms
Python
Parses email, also distorted ones, and convert them back to the real ones. It can recognize at maximum two dots notations, just add '.\5' at the end of the substitution string. Inspirated by dislick's work: https://regex101.com/r/wB7xJ7/1
Submitted by
fine_dust
-
9 years ago
0
two matches with pipe
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
0
token
ECMAScript (JavaScript)
replace token like [foo:bar:ba zz]
Submitted by
anonymous
-
9 years ago
0
SharePoint File Name Vaidation
ECMAScript (JavaScript)
The file name validation algorithm from MS KB905231, I assumed the prohibited suffixes included the file extension. I.e. 'foo.doc.files' would not match but 'foo.files.doc' would.
Submitted by
David Nelson
-
9 years ago
0
parse mysqldump INSERT statement field values (handles unescaping)
PCRE (PHP <7.3)
This will parse the fields portion of a mysqldump lines such as: INSERT INTO users VALUES (42,'Bob',12.34,NULL,'It\'s ok!');
Submitted by
Steve Shreeve
-
9 years ago
0
URL validation with http/https
PCRE (PHP <7.3)
URL validation with http/https
Submitted by
Gunjan
-
9 years ago
0
Key/Value pairs with multiline support
PCRE (PHP <7.3)
Key/Value pairs with multiline support
Submitted by
Alexander Krutov
-
9 years ago
0
A regex that tries to replace every instance in your site
PCRE (PHP <7.3)
For better exception capturing
Submitted by
anonymous
-
9 years ago
0
Machine readable passport number (second line)
ECMAScript (JavaScript)
Second line of the machine readable passport, based on the excellent article here - http://www.highprogrammer.com/alan/numbers/mrp.html
Submitted by
Leigh Garland
-
9 years ago
0
float
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
0
Get attributes values of html tags
PCRE (PHP <7.3)
Allow get the value of the some attributes from a html text
Submitted by
Marcelo Fuentes
-
9 years ago
0
pass
Python
no description available
Submitted by
anonymous
-
9 years ago
0
time input
PCRE (PHP <7.3)
following input formats work-- 10am to 3pm 1am - 2pm 12pm-3pm
Submitted by
anonymous
-
9 years ago
0
Date Groupings
Python
no description available
Submitted by
flipkitty
-
9 years ago
0
WOrd with colon
ECMAScript (JavaScript)
no description available
Submitted by
HJ
-
9 years ago
0
Phone Number Extraction
PCRE (PHP <7.3)
US numbers only
Submitted by
codedude
-
9 years ago
1
...
341
342
343
344
345
...
902
Community Library Entry
0
Regular Expression
PCRE (PHP <7.3)
/
(?!
^
\*
)+
?
(?:
^\W
*
\r
*
)
(?<country>
[
\w
]
{0,1}
[^
\r\n
]
)
(?:
[^
\w
*
]
+
)
(?<channel>
[
\w
?,'
\"\-
_
]
*
(?<!
[^
\w
?!
]
)
)
.
*
?
(?<tag>
\w
*
$
)
|
(?<channel2>
^
[
\w
?,'
\"\-
_
]
+
(?<!
[^
\w
?!
]
)
)
[^
\w\r\n
\*
\t\f\v
]
*
(?<tag2>
\w
+
$
)?
/
mg
Open regex in editor
Description
Get parts of an IPTV playlist
Submitted by
anonymous
-
5 years ago