下面是email正则表达式:
Ex:
string pattern = @"^[a-z][a-z|0-9|]*([_][a-z|0-9]+)*([.][a-z|0-9]+([_][a-z|0-9]+)*)?
                        @[a-z][a-z|0-9|]*\.([a-z][a-z|0-9]*(\.[a-z][a-z|0-9]*)?)$";   
   
System.Text.RegularExpressions.Match match = Regex.Match(txtEmailChecking.Text.Trim(),
                                                                                                pattern,RegexOptions.IgnoreCase);
   if(match.Success)
    MessageBox.Show("Success","Checking");
   else
    MessageBox.Show("Fail","Checking");

相关文章:

  • 2022-03-03
  • 2021-11-21
  • 2022-12-23
  • 2022-02-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-03
猜你喜欢
  • 2022-02-11
  • 2022-12-23
  • 2021-11-29
  • 2022-02-09
  • 2021-12-05
  • 2022-01-21
相关资源
相似解决方案