/// <summary>
/// 判断手机号码
/// </summary>
/// <param name="phoneNo"></param>
/// <returns></returns>
public static bool IsPhoneNo(string phoneNo)
{
string str = @"^0{0,1}(13[0-9]|15[0-9]|17[0-9]|18[0-9])[0-9]{8}$";
return Regex.IsMatch(phoneNo.ToStringEx(), str);
}
- 本文固定链接: http://jingyan.idoubi.net/4443.html
- 转载请注明: 搬运工 于 逗分享开发经验 发表