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
Testing (delete)
PCRE (PHP <7.3)
Testing (delete)
Submitted by
Testing (delete)
-
9 years ago
0
/../ directory path cleaner
PCRE (PHP <7.3)
Replaces preceeding directory with / when ../ is used.
Submitted by
Mr.Deek
-
9 years ago
0
Validate Password strength
PCRE (PHP <7.3)
(?=.*[A-Z]) # must contain 1 uppercase letter (?=.*[0-9]) # must contain 1 digit (?!.\n) # must not contain a newline character (?!.*\s) # must not contain any whitespace characters (?=.*[!$#+@%&]) # nust contain one of these symbols .{8,} # match a...
Submitted by
anonymous
-
9 years ago
0
Command line with escape
PCRE (PHP <7.3)
splits into command arguments: spaces split quotes keep spaced texts together \" escapes the quote
Submitted by
Skycoder42
-
9 years ago
0
positive/negative float/integer
PCRE (PHP <7.3)
matches all positive or negative float or integers
Submitted by
Codeloper
-
9 years ago
0
Regx5
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
Nigerian Phone numbers
PCRE (PHP <7.3)
Regex for validating Nigerian phone numbers using all mobile prefixes in the country
Submitted by
Jubril Edu
-
9 years ago
0
single line acronym
Python
no description available
Submitted by
anonymous
-
9 years ago
0
letters and _- followed by _000999
PCRE (PHP <7.3)
no description available
Submitted by
Pizzirani Andrea - Italy
-
9 years ago
0
DateTime YYYYMMDDhhmmss (with leap year)
PCRE (PHP <7.3)
Validates DateTime of format YYYYMMDDhhmmss including Leap Year
Submitted by
Alex
-
9 years ago
0
Email
ECMAScript (JavaScript)
validate email address
Submitted by
anonymous
-
9 years ago
0
url segments seperation
PCRE (PHP <7.3)
seperates url path and query
Submitted by
r.abdollahi
-
9 years ago
0
Capture subsubsub sections of constitution/bylays
PCRE (PHP <7.3)
Will only capture patterns matching 4 levels, found at the beginning of a line if /gm tag is used
Submitted by
bsmith
-
9 years ago
0
Match 0-100
ECMAScript (JavaScript)
http://stackoverflow.com/questions/34474298/regex-match-pattern-with-prefixed-string/34474387#34474325
Submitted by
anonymous
-
9 years ago
0
Find missing space around operators (=, +, -, *, /)
Python
no description available
Submitted by
rugk
-
9 years ago
0
IP address a.b.c.d form with range from 0 to 255 for each letters
Python
Are you pissed off with your regular expression homework? well then. here is the answer. ^([0-9]|1-9|1(0-9)|2(0-4|5[0-5]))\.([0-9]|1-9|1(0-9)|2(0-4|5[0-5]))\.([0-9]|1-9|1(0-9)|2(0-4|5[0-5]))\.([0-9]|1-9|1(0-9)|2(0-4|5[0-5]))$
Submitted by
Abdulaziz
-
9 years ago
0
switch case statemen in C++
PCRE (PHP <7.3)
Match switch case statemen in C++
Submitted by
Денис Суховерхов
-
9 years ago
0
dd-mmm-yyyy dd/mmm/yyyy dd.mmm.yyyy
ECMAScript (JavaScript)
it accept -, / and . operator date formate 29-Dec-2015
Submitted by
Abhijeet Joshi,
-
9 years ago
0
3-50 all
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
0
Facebook ID in Links or Widgets
PCRE (PHP <7.3)
Find the ID/name of facebook users/pages in widgets, or links.
Submitted by
anonymous
-
9 years ago
1
...
552
553
554
555
556
...
902
Community Library Entry
0
Regular Expression
Python
r'''
<
(
[
a
-
z
]
+
#tag
name
(
#attributes
begin
\s
+
[
a
-
z
]
+
\s
*
=
#attribute
name
\s
*
(
"
(
[^
"
\\
]
|
\\
.
)*
"
|
\'
(
[^
\'\\
]
|
\\
.
)*
\'
)
#attribute
value
is
a
quoted
string
)*
\s
*
#attributes
end
/
?
#can
close
single
tag
|
#or
/
[
a
-
z
]
+
)
#closing
tag
>
'''
gix
Open regex in editor
Description
html tags with attributes
Submitted by
anonymous
-
6 years ago