标签:sum reg param bool 字符串 手机号 phone summary stat
/// <summary>
/// 判断输入的字符串是否是一个合法的手机号
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public static bool IsMobilePhone(string input)
{
Regex regex = new Regex("^1[34578]\\d{9}$");
return regex.IsMatch(input);
}标签:sum reg param bool 字符串 手机号 phone summary stat
原文地址:http://www.cnblogs.com/blhw/p/6781030.html