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...
6
Find consecutive duplicate words
Python
no description available
Submitted by
anonymous
-
9 years ago
6
Email with + symbol
ECMAScript (JavaScript)
email that accepts the plus (+) symbol
Submitted by
luckcheese
-
9 years ago
6
Spanish DNI/NIE check fist pass
ECMAScript (JavaScript)
no description available
Submitted by
Rafael Casanova Morera
-
9 years ago
6
Simple Number
ECMAScript (JavaScript)
Verifies Number is a negative/positive number. Number may be a decimal, but if it is, it requires at least one number before and after the decimal place. Decimal numbers may also be negative or positive. Only 1 decimal place is allowed.
Submitted by
David P Smith
-
9 years ago
6
HTML tag stripper
PCRE (PHP <7.3)
This regex will identify all html start and end tags.
Submitted by
anonymous
-
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
6
Email
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
7
Split quotes and single words
ECMAScript (JavaScript)
Find " and ' quoted strings and "orphaned"/single words in a string
Submitted by
LoveIsGrief
-
11 years ago
7
CSS Import
Python
no description available
Submitted by
anonymous
-
11 years ago
7
PAN CARD validation
PCRE (PHP <7.3)
checks for valid PAN card for Indian users.
Submitted by
karan thakkar
-
11 years ago
7
split URL into location-resource-params (JavaScript)
ECMAScript (JavaScript)
Extract resource location, name and query parameters from a URL (JavaScript version)
Submitted by
cebence
-
10 years ago
7
SO: fail2ban regular to find 403 request in nginx
Python
http://stackoverflow.com/q/25778420/2072035
Submitted by
anonymous
-
10 years ago
(Last modified a year ago)
7
if, else if, else condtion match
ECMAScript (JavaScript)
matches full if condition statment eg: if(condition){ ... } else if(condition){ ... }else{...
Submitted by
Ivan Jakesevic
-
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
7
TimezoneOffset
ECMAScript (JavaScript)
used to parse timezone in the format -08:00 or +05:30
Submitted by
Neha
-
10 years ago
7
simple common lisp tokenizer
ECMAScript (JavaScript)
main symbols and comments are supported
Submitted by
d4rw1n1s7@gmail.com
-
10 years ago
7
rsyslog test
PCRE (PHP <7.3)
global modifier
Submitted by
dtmland
-
10 years ago
7
Match text (not within html tag)
ECMAScript (JavaScript)
no description available
Submitted by
Moistly
-
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
7
simple email
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
...
893
894
895
896
897
...
900
Community Library Entry
0
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(?P<group>
(?P<structured>
(?P<single>
(?P<tag_first>
(?P<tag>
\d
+
(?:
\/
\d
+
)+
|
(?P<repnum>
\$
+
(?:
@
\^
*
-
?
\d
*
)?)
|
[
\w
:!-
]
)+
+
(?P<attr>
(?P<short_attr>
\.
(?P<short_val>
(?P>repnum)
|
[
\w
:!-
]
)*
|
\#
(?P>short_val)
*