C#使用正则表达式判断手机号码

作者:C/S框架网  发布日期:2015/12/03 16:13:41
  C#使用正则表达式判断手机号码



C# Code:

public static bool IsMobileNo(string mobileNo)
{
   return Regex.IsMatch(mobileNo, @"^0?(13\d|14[5,7]|15[0-3,5-9]|17[0,6-8]|18\d)\d{8}$");
}

//来源:C/S框架网(www.csframework.com) QQ:1980854898





C/S框架网|原创精神.创造价值.打造精品