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
/
(?![\d.]+)((?!-))(xn--)?[a-z0-9][a-z0-9-_]{0,61}[a-z0-9]{0,1}\.(xn--)?([a-z0-9\._-]{1,61}|[a-z0-9-]{1,30})
/
gm
Input 1
New
www.example.com subdomain.example.com subdomain.example.co.uk 192.168.0.0 127.0.0.1 Lucia told me about www.example.com. However, whenever I visit the site the IP 127.0.0.1 shows up.
Extraction
www.example.com subdomain.example.com subdomain.example.co.uk 192.168.0.0 127.0.0.1 Lucia told me about www.example.com. However, whenever I visit the site the IP 127.0.0.1 shows up.