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 18,040 community submitted regex patterns...
2
Separating Server and Domain from FQDN
PCRE (PHP <7.3)
no description available
Submitted by
Awan
-
9 years ago
2
Local url detection
PCRE (PHP <7.3)
Detect if an url is local (even if written in an absolute way)
Submitted by
Jean Fenouil
-
9 years ago
1
Top Level Domain (TLD)
PCRE (PHP <7.3)
Select TLD (.com, .fr ...) from url or domain
Submitted by
Etienne
-
9 years ago
2
Steam ID Regex
PCRE (PHP <7.3)
Will match and assign to named groups any form of identification for a steam user. Note that profile links and steamid64s are exclusive, preferring the more specific definition to the other, as well as is the case with customurls and full custom profile links.
Submitted by
jokleinn
-
9 years ago
1
US and Mexico Phone Numbers with Extensions
PCRE (PHP <7.3)
no description available
Submitted by
Katrina
-
9 years ago
2
fiddler raw to php array
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Replace Czech accents, Part 1
Python
The result of this put as input into part 2.
Submitted by
Premysl Karbula
-
9 years ago
2
URL with Port
ECMAScript (JavaScript)
no description available
Submitted by
rkl
-
9 years ago
2
Course GUID
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2
Capture 2 digits after a dash
ECMAScript (JavaScript)
Find all '-' and capture 2 following digits
Submitted by
Marie Imperial
-
9 years ago
1
html
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
url
Python
no description available
Submitted by
oniro
-
9 years ago
1
Space replacement
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2
DNS and lenght
PCRE (PHP <7.3)
Ideal for filter Domain with or without subdomain, and length less than 256.
Submitted by
Presta-Lab
-
9 years ago
2
Asterisk channel name
PCRE (PHP <7.3)
Extract channel name from Asterisk channel line
Submitted by
Denis Bondar
-
9 years ago
2
Standard first and/or last name
PCRE (PHP <7.3)
This just checks for case insensitive first name, last name, or both.
Submitted by
Josh Garnick
-
9 years ago
0
Reg Exp to Remove all special Characters
PCRE (PHP <7.3)
This regular expression removes all special characters including whitespaces which are allowed in windows path name, file name and folder name.
Submitted by
Anirudh
-
9 years ago
2
Search for attributes
Python
A search attribues in a image tag.
Submitted by
AgustÃn Bouillet
-
9 years ago
1
Website validation
PCRE (PHP <7.3)
Simple website validation for your casual usage
Submitted by
McSwagLord
-
9 years ago
(Last modified a year ago)
1
Capture MSSQL tables and their potential aliases
PCRE (PHP <7.3)
Searches simple Select-From-Where style queries for tables and their aliases (if they have any). Doesn't properly handle subqueries used in place of tables!
Submitted by
Tsaukpaetra
-
9 years ago
1
...
63
64
65
66
67
...
902
Community Library Entry
2
Regular Expression
PCRE (PHP <7.3)
/
^
(?=
.
{3,256}
$
)
(
(?:
[
a
-
z0
-
9-
]
{2,65}
\.
)?
[
a
-
z0
-
9-
]
{2,256}
\.
[
a
-
z
\.
]
{2,6}
)
$
/
img
Open regex in editor
Description
Ideal for filter Domain with or without subdomain, and length less than 256.
Submitted by
Presta-Lab
-
9 years ago