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,320 community submitted regex patterns...
0
date format slicing
PCRE (PHP <7.3)
lookahead
Submitted by
Kmna
-
9 years ago
2
Basic Email
PCRE (PHP <7.3)
no description available
Submitted by
Kareem Cambridge
-
9 years ago
1
java
Python
no description available
Submitted by
anonymous
-
9 years ago
1
Replace comma in brackets
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Backline
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
input variable legnth string to group
PCRE (PHP <7.3)
select leading X digits, remove zero if present, and insert 6 or 7 digit length into a name group
Submitted by
anonymous
-
9 years ago
1
Setting Conversion - Original
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Split user agent into groups
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Regex - global match, multiline
Python
no description available
Submitted by
MetalMuzu
-
9 years ago
0
<Trigger R="In a burst of feathers, a portal appears!" SD="DUCK PORTAL
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
mail
PCRE (PHP <7.3)
mail
Submitted by
anonymous
-
9 years ago
0
Search href in <a> tag (internal links)
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2
Search src from <img> tag
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Parse JS expression string
PCRE (PHP <7.3)
This expression is used to parse strings like category.slug==smartphone&&request.user_id==12
Submitted by
Phaeton
-
9 years ago
1
looking for a word of 4 letter
PCRE (PHP <7.3)
look for a word of 4 letter with the look behind and look ahead
Submitted by
balzrog & torb500
-
9 years ago
1
assertion (lookbehind and lookahead)
PCRE (PHP <7.3)
no description available
Submitted by
adri et nico
-
9 years ago
-1
uah
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Tripmix selectors for 2015 reprocess
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
Matches only word without specific HTML tag around it.
PCRE (PHP <7.3)
This will match a word that is not wrapper by the a specified HTML element (with a class).
Submitted by
Johnny Ji
-
9 years ago
1
sql select request
PCRE (PHP <7.3)
matching any SQL query starting by "SELECT foo,bar FROM fool,baz {...}" this one is the good one. first one have a matching alowing * in the FROM statement.
Submitted by
klmmlk
-
9 years ago
1
...
459
460
461
462
463
...
566
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