手机号码

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

 验证 E-mail格式

   public bool IsEmail(string str_Email)
   {
            return System.Text.RegularExpressions.Regex.IsMatch(str_Email,

            @"^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$");
   }

相关文章:

  • 2022-12-23
  • 2022-01-02
  • 2022-12-23
  • 2022-02-09
  • 2021-12-28
  • 2021-12-21
  • 2022-12-23
猜你喜欢
  • 2021-12-03
  • 2022-02-07
  • 2021-12-28
  • 2021-07-30
  • 2021-12-28
  • 2022-02-07
  • 2022-01-02
相关资源
相似解决方案