我需要在  后台 验证是否是手机号码的格式,怎么弄啊?

解决方案 »

  1.   

    public bool IsHandset(string str_handset)
            {
         return System.Text.RegularExpressions.Regex.IsMatch(str_handset, @"^[1]+[3,5]+\d{9}");
            }
      

  2.   

    public bool IsHandset(string str_handset)
      {
      return System.Text.RegularExpressions.Regex.IsMatch(str_handset, @"^[1]+[3,5]+\d{9}");
      }同意。
      

  3.   

    谢谢各位 ,
    把 jay的正则替换成子夜给的就好了