// strIn 为 输入的Email地址字符串变量 返回为true或false return 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})(\]?)$ " ,RegexOptions.Compiled | RegexOptions.IgnoreCase); 转载于:https://www.cnblogs.com/hanguoji/archive/2007/07/31/837959.html