Domain regex pattern

Hi Guys!

I am trying to validate domains using the following pattern. However, the regex below does not support domains. Can anyone show me how I can modify it so that it supports domains?


Thanks in advance.


No problem. If you need anything else, don’t hesitate to PM me!


All you need to do is change the length range on the end. I’ve shortened it to 2, to support short domains (ca, hk, …) and expanded it to 7, so your extra long domain is handled (

I hope this helps!

Or, ask in public. :eye: