static public bool IsEmail(string email)
{
string pattern = @"^\w+([-+.]\w*)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$";
return Regex.IsMatch(email, pattern);
}
转载于:https://www.cnblogs.com/BrokenIce/p/5518691.html