public static class RegxCheck
{
/// <summary>
///Regular expression to verify mobile number
/// </summary>
///< param name = "telnum" > phone number to be verified < / param >
/// <returns></returns>
public static bool CheckTelNum(string telNum)
{
//Regular mobile phone number
string telecom = @"^1[3578][01379]\d{8}$";
Regex telecomReg = new Regex(telecom);
//Unicom mobile number regular
string unicom = @"^1[34578][01256]\d{8}$";
Regex unicomReg = new Regex(unicom);
//Mobile phone number regular
string cmcc = @"^(134[012345678]\d{7}|1[34578][012356789]\d{8})$";
Regex cmccReg = new Regex(cmcc);
return telecomReg.IsMatch(telNum) || unicomReg.IsMatch(telNum) || cmccReg.IsMatch(telNum);
}
}
Regular verification mobile phone number (Unicom, telecom, mobile phone number), does not include the landline number, as a member login (regular verification) WinForm