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 12,660 community submitted regex patterns...
0
4shared
PCRE (PHP <7.3)
www.4shared.com
Submitted by
guru
-
9 years ago
0
111
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
Beginning of word
PCRE (PHP <7.3)
When looking for day, Sunday should not be matched.
Submitted by
Ben
-
9 years ago
0
Find array ending with comma
PCRE (PHP <7.3)
Useful for finding array error. Example: {'id':'1','name':'test',} Finds the ",}" from the example
Submitted by
anonymous
-
9 years ago
0
replicated pageContent id within a div
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
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
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
time input
PCRE (PHP <7.3)
following input formats work-- 10am to 3pm 1am - 2pm 12pm-3pm
Submitted by
anonymous
-
9 years ago
0
WOrd with colon
ECMAScript (JavaScript)
no description available
Submitted by
HJ
-
9 years ago
1
...
252
253
254
255
256
...
633
Community Library Entry
0
Regular Expression
ECMAScript (JavaScript)
/
^
(
(
\+
7
|
7
|
8
)
(
(
\-\(
[
0
-
9
]
{3}
\)\-
)
|
(
\(
[
0
-
9
]
{3}
\)
)
|
(
\s
[
0
-
9
]
{3}
\s
)
|
(
\-
[
0
-
9
]
{3}
\-
)
|
[
0
-
9
]
{3}
)
[
0
-
9
]
{3}
(
(
\s
|
\-
)?
)
[
0
-
9
]
{2}
(
(
\s
|
\-
)?
)
(
[
0
-
9
]
{2}
)
)
$
/
Open regex in editor
Description
Работает с форматами +7, 7, 8 Варианты валидации любые.
Submitted by
anonymous
-
a year ago