I am trying to validate domains using the following pattern. However, the regex below does not support .mobi.na domains. Can anyone show me how I can modify it so that it supports .mobi.na 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 (mobi.na)
I hope this helps!