正则表达式邮箱验证

方法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+)*$")
原文地址:https://www.cnblogs.com/wintertone/p/11685334.html