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 9,520 community submitted regex patterns...
0
webui
PCRE (PHP <7.3)
webui test
Submitted by
Stelsy
-
10 years ago
0
YouTube VideoID and ListID from URL
PCRE (PHP <7.3)
For embeding, replace with //www.youtube.com/embed/$3?list=$2$6
Submitted by
@rubenlopezgea
-
10 years ago
0
Match Linux File basename and pathname
PCRE (PHP <7.3)
Matches 2 groups - pathname and file basename, and will exclude anything on the end of the line that is not properly escaped.
Submitted by
Steve Sant
-
10 years ago
0
fgj
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
123
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
Match URL Starts with //
PCRE (PHP <7.3)
You can match the string starts with // (forward slash)
Submitted by
Sanal Menon Kalipurayath
-
10 years ago
0
parenthesized numerical expression
PCRE (PHP <7.3)
no description available
Submitted by
pooty
-
10 years ago
0
eksr
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
1
PCRE (PHP <7.3)
1
Submitted by
anonymous
-
10 years ago
0
test
PCRE (PHP <7.3)
test
Submitted by
test
-
10 years ago
0
sas
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
select html paragraph tags
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
fsd
PCRE (PHP <7.3)
fsdfsd
Submitted by
anonymous
-
10 years ago
0
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
eee
PCRE (PHP <7.3)
eee
Submitted by
eee
-
10 years ago
0
Meow
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
23
PCRE (PHP <7.3)
23
Submitted by
23
-
10 years ago
0
Remove repetitions from plain array
PCRE (PHP <7.3)
Remove repeated elements from a plain JSON array.
Submitted by
Icaro Niz
-
10 years ago
0
1
PCRE (PHP <7.3)
1
Submitted by
1
-
10 years ago
1
...
15
16
17
18
19
...
476
Community Library Entry
3
Regular Expression
Golang
`
(?i)
^
(?:
(
[
a
-
z0
-
9-
]
+
|
\*
)
\.
)?
(
[
a
-
z0
-
9-
]
{1,61}
)
\.
(
[
a
-
z0
-
9
]
{2,7}
)
$
`
gm
Open regex in editor
Description
Validates subdomain, root domain, and wild card domains
Submitted by
AnonymousDapper
-
8 years ago