使用C#来验证一个字符串是否为合法的Email地址:

public static bool IsEmail(string email)
{
    String strExp = @"\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*";
    Regex r = new Regex(strExp);
    Match m = r.Match(email);
    return m.Success;
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-06
  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
  • 2022-02-24
猜你喜欢
  • 2021-08-10
  • 2021-11-11
  • 2022-01-18
  • 2021-07-21
  • 2022-01-16
  • 2022-12-23
相关资源
相似解决方案