public static bool fncMailFormat(string mail) { Regex regex = new Regex(@"^([\w\.\-]+)@([\w\-]+)((\.(\w){2,3})+)$"); Match match = regex.Match(mail); if (match.Success) return true; else return false; }