Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

regex domain

^((?!-))(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}.[a-z]{2,})$
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #regex #domain
ADD COMMENT
Topic
Name
3+7 =