js 手机号码验证
function IsPhoneAvailable (numStr) { var myreg = /^[1][3,4,5,7,8][0-9]{9}$/; return myreg.test(numStr); }
C#验证方法:
public static bool IsMobilePhone(string numStr) { Regex regex = new Regex("^1[34578]\\d{9}$"); return regex.IsMatch(numStr); }
参考:https://www.cnblogs.com/wuhuisheng/archive/2011/03/23/1992652.html