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

正则表达式

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

posted @ 2017-03-31 13:37  坤坤  阅读(5161)  评论(1编辑  收藏  举报