C# 判断邮件格式
public static bool IsValidEmail(string Mail) { string strRegex = @"\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"; System.Text.RegularExpressions.Regex re = new System.Text.RegularExpressions.Regex(strRegex); if (re.IsMatch(Mail)) return true; else return false; }
记录下来,只因不想错过

浙公网安备 33010602011771号