Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
domain name with subdomains
Open Workspace
PCRE (Legacy)
Match
Created 2023-05-05 14:09
0
Regular Expression
~
^
[
\p{N}\p{L}
\-
+
\.
]
{1,500}
\.
[
\p{N}\p{L}
]
[
\p{L}
-
]
*
[
\p{N}\p{L}
]
+
$
~
ugm
Description
should match any domain with one or more subdomains
Submitted by
Igor Tiulkanov