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 11,420 community submitted regex patterns...
2
Match <?xml...?>
PCRE (PHP <7.3)
How to match the first line of a xml document
Submitted by
anonymous
-
9 years ago
0
apache log analysis
Python
no description available
Submitted by
anonymous
-
9 years ago
1
Find only ".config" file names
PCRE (PHP <7.3)
Will find lines that end with "/*.config"
Submitted by
Dee
-
9 years ago
1
Safe words and dirty words
PCRE (PHP <7.3)
This regex matches "bob" but does not match "abob", "bobb" or "cbobd" while it does match "cbob" and "bobd". Here "bob" is the dirty word and "abob", "bobb" and "cbobd" are safe phrases
Submitted by
Alex
-
9 years ago
0
extract sql statements from sql profiler trace
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
Spain mobile phone numbers
PCRE (PHP <7.3)
Matches current mobile telephone numbers in Spain.
Submitted by
Carlos Interactive3g
-
9 years ago
0
Italy mobile phone numbers
PCRE (PHP <7.3)
Matches current mobile phone numbers in Italy
Submitted by
Carlos Interactive3g
-
9 years ago
1
ip address @pexipdemo.com
Python
no description available
Submitted by
anonymous
-
9 years ago
-3
Telephone
PCRE (PHP <7.3)
Find Telephone
Submitted by
Mr.Fail
-
9 years ago
1
Mac-address filtering
PCRE (PHP <7.3)
Trying to capture a mac-address structure
Submitted by
R. van den Hoek
-
9 years ago
1
Recherche email
PCRE (PHP <7.3)
Recherche un email
Submitted by
G Morelle
-
9 years ago
0
symfe - Group with exclusions
PCRE (PHP <7.3)
Select from a pattern a group without some parameters
Submitted by
symfe
-
9 years ago
-3
RegEX for account code starting with 000-
PCRE (PHP <7.3)
no description available
Submitted by
Joe H
-
9 years ago
0
XML 1.0 dateTime values
Python
dateTime type matching regex for XML 1.0
Submitted by
DervishD
-
9 years ago
3
prices in nis
Python
no description available
Submitted by
molaxx
-
9 years ago
16
Alphanumeric Regex
PCRE (PHP <7.3)
no description available
Submitted by
Deepan
-
9 years ago
0
purge creo model
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
French telephone number
PCRE (PHP <7.3)
Match french telephones numbers. Allows space, dot and dash between pairs of numbers.
Submitted by
bsymon
-
9 years ago
1
C++ operator overload
PCRE (PHP <7.3)
"Lazy" operator overload regular expression: += and likes are left out because + and like matches anyway.
Submitted by
Guba Dániel Olivér
-
9 years ago
1
Find exact domain name match
PCRE (PHP <7.3)
Find exact domain name match in pipe delimeted string
Submitted by
anonymous
-
9 years ago
1
...
522
523
524
525
526
...
571
Community Library Entry
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
-
12 years ago