js 正则表达式验证网站域名

正则表达式

^[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9](?:.[a-zA-Z]{2,})+$

原文地址:https://www.cnblogs.com/dm521/p/6650943.html