Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
^\b(0|[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])\b\h(\.|\b((?=.{1,255}$)(?:xn\-\-)?(?!-)(?!.*--)[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*\.?)\b)(?:\.)?(?!=)(\h(([a-z0-9-]{1,63})((\=\")[\x21\x23-\x27\x2A-\x3A\x3C-\x7E]{1,255}+(\"))?)?)*?$
/
gm
Input 1
New
230 example.com 56 subsubdomain.subdomain.example.com.thisisaverylongdomainnamewithseventycharacters 89 subsubdomain.subdomain.example.com.thisisaverylongdomainnamewithseventycharacters test 1 gOOglE.com alpn="h3,h2" 250 exmpla.com test="test" 250 exmpla.com 33="3.63" 250 . 33="363" 1 . alpn="h3,h2" 1 example.com. alpn="h3,h2" 2 . test=test 3 . test="" 1 . alpn="h3,h2" ipv4hint="192.0.2.1" ipv6hint="2001:db8::1" 1 . alpn="h3,h2" ipv4hi-nt="192.0.2.1" ipv6hint="2001:db8::1" 1 test.org alpn="h3,h2" ipv4hi-nt="192.0.2.1" ipv6hint="2001:db8::1" 1 test.org alpn="h3,h2" ipv4hi-nt="192.0.2.1" ipv6hint="2001:db8::1" ipv4hi-nt="192.0.2.1" ipv6hint="2001:db8::1" ipv4hi-nt="192.0.2.1" ipv6hint="2001:db8::1" ipv4hi-nt="192.0.2.1" ipv6hint="2001:db8::1" ipv4hi-nt="192.0.2.1" ipv6hint="2001:db8::1" 1 test.org alpnfeefefefefefwefwefwefwefwefwefwefwefwefwefwefwefhththegerg="h3,h2" 1 test.org alpnfeefefefefefwefweefwefwefwefwefwefwefwefwefhththegerg="h3\,h2" 1 test.org test="jn7j64m764mi67i4i467nhin0iu