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
Host sanity check
Open Workspace
PCRE2 (PHP)
Match
Created 2021-09-28 05:45
0
Regular Expression
/
^
(
[
abcdefghijklmnopqrstuvwxyz01234567890-
]
+
\.
)+
[
abcdefghijklmnopqrstuvwxyz01234567890
\-
]
+
$
/
gm
Description
Super dumb sanity check for valid host
Submitted by
Anonymous