.NET 正则验证邮箱

///.NET 正则验证邮箱

public bool IsValidEmail(string strIn)
    {
        //   Return   true   if   strIn   is   in   valid   e-mail   format.
        return System.Text.RegularExpressions.Regex.IsMatch(strIn, @"^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$");
    }

原文地址:https://www.cnblogs.com/wuhuisheng/p/2013262.html