阿飞小站

低调做事,高调做人!

导航

  • 首页
  • 搜索
  • 标签
  • 留言
  • 相册

正则表达式之域名

0 comments At 12/24/2009 By 阿飞 Category:程序开发

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

正确:regexlib.com | this.is.a.museum | 3com.com
错误:notadomain-.com | helloworld.c | .oops.org

Read More...
分页:[«]1[»]

Powered By Z-Blog 1.8 Spirit Build 80722
Copyright © Www.ChengFei.Net. All Rights Reserved. 皖ICP备07003132号