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
Highest Score
Lowest Score
Most upvotes
Most downvotes
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 11,600 community submitted regex patterns...
0
^[a-zA-Z_\-]+$
PCRE (PHP <7.3)
Check no space
Submitted by
anonymous
-
9 years ago
1
DE PLZ/ZIP + Location
PCRE (PHP <7.3)
no description available
Submitted by
elementcode
-
9 years ago
2
parse tag data with multiline
Python
parse tag data with multiline
Submitted by
Ali GÖREN
-
9 years ago
0
my regex for multiline
Python
multiline input with tagged
Submitted by
Ali GÖREN
-
9 years ago
1
nxtgn torrents
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
CG
PCRE (PHP <7.3)
ptSText
Submitted by
anonymous
-
9 years ago
-1
شش
Python
no description available
Submitted by
anonymous
-
9 years ago
1
combined log regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2
preprocess text files to include only readable and text words
Python
for large corpus cleaning
Submitted by
aliabbas petiwala
-
9 years ago
1
Obtaining class, method and line number from stack trace line
PCRE (PHP <7.3)
no description available
Submitted by
@mahesha999
-
9 years ago
1
Container Number
PCRE (PHP <7.3)
Check ISO 6346 container number. First three chars, unit type, six digits and then one check digit.
Submitted by
Symon Davis
-
9 years ago
0
camelCase
PCRE (PHP <7.3)
no description available
Submitted by
Danno
-
9 years ago
1
Multi word
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
Add xml:space to file
PCRE (PHP <7.3)
no description available
Submitted by
Yu Tang
-
9 years ago
1
2 dots email
PCRE (PHP <7.3)
Allow only two dots email address, for username.group@domain.tld
Submitted by
Emad Abughali
-
9 years ago
0
Phone number
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Phone number
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
Date Parser
Python
Parses date in (Month Day Year) format with delimiting chars being -\/ or whitespace
Submitted by
Awk
-
9 years ago
0
JSON Validator
PCRE (PHP <7.3)
Complete (recursive) JSON validation regular expression.
Submitted by
@Erutan409
-
9 years ago
0
LaTeX - Nonspaced operators
PCRE (PHP <7.3)
Find nonspaced operators with capturing groups to reformat correctly.
Submitted by
Dave
-
9 years ago
1
...
479
480
481
482
483
...
580
URL regexp
40
Regular Expression
PCRE (PHP <7.3)
/
(
(
(
[
A
-
Za
-
z
]
{3,9}
:
(?:
\/\/
)?
)
(?:
[
-;:&=
\+\$
,
\w
]
+
@
)?
[
A
-
Za
-
z0
-
9.-
]
+
|
(?:
www
.
|
[
-;:&=
\+\$
,
\w
]
+
@
)
[
A
-
Za
-
z0
-
9.-
]
+
)
(
(?:
\/
[
\+
~%
\/
.
\w
-_
]
*
)?
\?
?
(?:
[
-
\+
=&;%@.
\w
_
]
*
)
#
?
(?:
[
.
\!\/\\
w
]
*
)
)?
)
/
ig
Open regex in editor
Description
A quite neat regular expression for URLs, e-mails..., I found on Matthew O'Riordan's blog.
Submitted by
Matthew O'Riordan
-
11 years ago