验证是否有效的手机号码
作者:互联网
/// <summary> /// 验证是否有效的手机号码 /// </summary> /// <param name="mobilePhone"></param> /// <returns></returns> public static bool IsValidMobilePhone(string mobilePhone) { return Regex.IsMatch(mobilePhone, @"^1[3|4|5|6|7|8|9]\d{9}$"); }
标签:Regex,return,mobilePhone,验证,有效,手机号码,string 来源: https://www.cnblogs.com/wzf-Learning/p/16630189.html