正则表达式手机号

 1         /// <summary>
 2         /// 判断输入的字符串是否是一个合法的手机号
 3         /// </summary>
 4         /// <param name="input"></param>
 5         /// <returns></returns>
 6         public static bool IsMobilePhone(string input)
 7           {
 8               Regex regex = new Regex("^1[3456789]\d{9}$");
 9              return regex.IsMatch(input);
10   
11         }
原文地址:https://www.cnblogs.com/kliine/p/9170592.html