/// <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,mobilePhone,验证,是否,有效,手机号码 From: https://www.cnblogs.com/wzf-Learning/p/16630189.html