判断输入的字符串是否是一个合法的手机号 public bool IsMobilePhone(string input) { Regex regex = new Regex("^13\d{9}$"); return regex.IsMatch(input); }