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,740 community submitted regex patterns...
1
split URL in protokoll, domain, file(with path), parameter and anker
PCRE (PHP <7.3)
split URL in protokoll, domain, file(with path), parameter and anker
Submitted by
Candyman1332
-
9 years ago
0
Match all html tags
PCRE (PHP <7.3)
no description available
Submitted by
Kostas Trichas
-
10 years ago
-2
Remove empty HTML tags
PCRE (PHP <7.3)
Removes empty HTML tags. Was needed for old input clean-up and to keep a HTML parses from crashing. Looking for improvement on bottom test.
Submitted by
R. Sartorius
-
11 years ago
0
DateTime: DD-MM-YYYY HH:mm:ss
PCRE (PHP <7.3)
Validate and Capture (in 1000-2999 range) Leap-Year Correct
Submitted by
anonymous
-
12 years ago
0
negated special characters
PCRE (PHP <7.3)
no description available
Submitted by
Rimjhim
-
11 years ago
1
Twitter Hashtags
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
1
MAtch all lines starting with # to remove em
PCRE (PHP <7.3)
no description available
Submitted by
Jactaest
-
10 years ago
1
HTML color search
PCRE (PHP <7.3)
Searches for hex colors in HTML code.
Submitted by
Barlean
-
10 years ago
1
regular expression to avoid white spaces
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
json
PCRE (PHP <7.3)
no description available
Submitted by
suat & umut
-
10 years ago
1
Parse JSON key value
PCRE (PHP <7.3)
no description available
Submitted by
Kostas Trichas
-
10 years ago
1
hostname
PCRE (PHP <7.3)
RFC 1123 compatible RegEx for a hostname (not a domain name), inspired by chapter 7.15 from Regular Expressions Cookbook.
Submitted by
anonymous
-
10 years ago
1
Any telephone number with at least 6 digits
PCRE (PHP <7.3)
Telephone number can come with extra characters to denote country, region, etc
Submitted by
https://co.linkedin.com/in/andresfelipecardona
-
10 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
First 3 words in sentence
PCRE (PHP <7.3)
no description available
Submitted by
hjgabrielsen
-
9 years ago
1
email regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
Matches when the string does not contain an exact word
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
french phone number (locale format)
PCRE (PHP <7.3)
little matcher for french phone number in locale format (example: 0231348228)
Submitted by
Nolwennig
-
10 years ago
0
Fully Qualified Domain Name FQDN
PCRE (PHP <7.3)
Fully qualified domain name validation
Submitted by
ximbs
-
9 years ago
1
Table Purgatory
PCRE (PHP <7.3)
A regex to find all nowrap text occurrences and name all the groups involved in preparation for a replacement pass
Submitted by
Joe Hacobian
-
12 years ago
1
...
25
26
27
28
29
...
487
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