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
e164 format
ECMAScript (JavaScript)
e164 format
Submitted by
anonymous
-
10 years ago
2
phone regex
ECMAScript (JavaScript)
Match phone number with extensions or not
Submitted by
Mélissa Dumont
-
10 years ago
2
donotbackup
PCRE (PHP <7.3)
finding directories w/ donotbackup
Submitted by
anonymous
-
10 years ago
2
Regular Expression For Date
ECMAScript (JavaScript)
Regular expression for asp:RegularExpressionValidator with format MMddyy. i have Resolved leap year issue as well as month ending day issue with Regular expression
Submitted by
Priyanka Khadilkar
-
10 years ago
2
Email validation
ECMAScript (JavaScript)
Very crude, but effective email validation.
Submitted by
Ryan Oaks
-
10 years ago
2
Finding a string along with a few other words
PCRE (PHP <7.3)
no description available
Submitted by
A.K. Asik
-
10 years ago
2
replace only inner text without tag element
PCRE (PHP <7.3)
no description available
Submitted by
A.K. Asik
-
10 years ago
2
IPv4
PCRE (PHP <7.3)
no description available
Submitted by
Jorge C.
-
10 years ago
2
Currency Amount
PCRE (PHP <7.3)
Format: x0.00 Valid: 13.37 4.20 1.00...
Submitted by
anonymous
-
10 years ago
2
Capture 5 words either side of a match string
Python
no description available
Submitted by
anonymous
-
10 years ago
2
vk.com wall
PCRE (PHP <7.3)
Parse 123_123 http://vk.com/id82702078?w=wall82702078_3386 http://vk.com/wall82702078_3386 http://vk.com/club34073863?w=wall-34073863_28647 http://vk.com/wall-34073863_28647
Submitted by
by xzotix
-
10 years ago
2
facebook post embed code
PCRE (PHP <7.3)
This pattern matches to the facebook post embed codes. It matches on each parts of the whole embed code individualy, and matches on the complete embed code either, but it requires minimum a fb-post div.
Submitted by
kristian tanacs
-
10 years ago
2
Any number between 0 and 10 with 0 or 1 decimal places
PCRE (PHP <7.3)
Matches any number between 0 and 10 (inclusive) with 0 or 1 decimal places. Note that .5 will NOT be matched but 0.5 will. Also 10.X will not be matched, but 10 will.
Submitted by
Matt Coubrough
-
10 years ago
2
PO Box Address Validation
PCRE (PHP <7.3)
no description available
Submitted by
mrferos
-
10 years ago
2
price float pattern
ECMAScript (JavaScript)
Checks that value is float format and has two digits at max
Submitted by
@jprajani
-
10 years ago
2
Extract Fields from Mailexpire
PCRE (PHP <7.3)
Given the HTML of an alias's control panel, apply the XPath "//span[@class='maintext']". The second result returned can be parsed by this regex to yield the most pertinent field names and their values.
Submitted by
Crumeniferus
-
10 years ago
2
Route Regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2
#Set-Cookie:\\s+(?<cookie>[^=]+=[^;]+)#m regex explanation
PCRE (PHP <7.3)
no description available
Submitted by
Igor
-
10 years ago
2
Extract Metadata
PCRE (PHP <7.3)
no description available
Submitted by
kai_desu
-
10 years ago
2
Array formatting (serialized)
PCRE (PHP <7.3)
Check for correctly formatted array of this type: array( array('name'=>'War and Peace', 'year'=>1865), array('name'=>'Different Seasons', 'year'=>1982), )
Submitted by
oneperfectsunrise
-
10 years ago
1
...
857
858
859
860
861
...
900
Community Library Entry
0
Regular Expression
ECMAScript (JavaScript)
/
^
(?:
.
*
[
\/\\
]
)?
(?<FileNameWithoutExtension>
.
*
)
\.
(
.
*
?
(?=
\#
|
\?
|
$
)
)
/
gm
Open regex in editor
Description
Match filenames in URLS (updated)
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)