Last active
November 24, 2022 13:39
-
-
Save RokkuCode/cb96c36cd34a7669bfa93def1f8f5453 to your computer and use it in GitHub Desktop.
Domain regex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\b((?=[a-z0-9-]{1,63}\.)(xn(-{0,4}))?[a-z0-9]+(-[a-z0-9]+)*\.)+((xn(-{0,4}))?[a-z0-9]+) | |
Testcases: | |
xn--dmin-moa0i.example | |
xn--aaa-pla.example | |
xn--aaa-qla.example | |
xn--aaa-rla.example | |
xn--aaa-sla.example | |
xn--dj-kia8a.vu.example | |
xn--efran-2sa.example | |
xn--and-6ma2c.example | |
xn--bcdf-9na9b.example | |
xn----ymcbaaajlc6dj7bxne2c.xn--wgbh1c | |
xn--n3h.example | |
xn--fuball-cta.example | |
heise.de | |
n0c.de | |
wel-1.de | |
44444444.de |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment