wintertone

方法1:([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)

方法2:\w+([-+.\']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*

方法3:^\w+([-+.\']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$

C#应用举例

System.Text.RegularExpressions.Regex.IsMatch(str, @"^\w+([-+.\']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$")

 

分类:

技术点:

相关文章:

  • 2021-11-21
  • 2021-12-03
  • 2021-11-21
  • 2021-12-03
  • 2021-11-23
  • 2021-11-23
  • 2022-01-07
  • 2021-12-22
猜你喜欢
  • 2021-12-03
  • 2021-12-03
  • 2022-01-07
相关资源
相似解决方案