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
FQDN Fully Qualified Domain Name
Open Workspace
PCRE (Legacy)
Match
Created 2015-06-30 16:04
1
Regular Expression
/
^
(
(
(
[
a
-
z0
-
9
]
[
a
-
z0
-
9
\-
]
*
[
a
-
z0
-
9
]
)
|
[
a
-
z0
-
9
]
+
)
\.
)*(
[
a
-
z
]
+
|
xn
\-\-
[
a
-
z0
-
9
]
+
)
\.
?
$
/
Description
Allow only two or more labels.
Fix deprecated FQDN regexp not passing on test "dicas-l.com.br"
Submitted by
Rafael Justo and Mauro Trajber