/// <summary> /// 判断输入的字符串是否是一个合法的手机号 /// </summary> /// <param name="input"></param> /// <returns></returns> public static bool IsMobilePhone(string input) { Regex regex = new Regex("^1[3456789]\\d{9}$"); return regex.IsMatch(input); }
正则表达式手机号
猜你喜欢
转载自www.cnblogs.com/kliine/p/9170592.html
今日推荐
周排行