static public bool IsEmail(string email) { string pattern = @"^w+([-+.]w*)*@w+([-.]w+)*.w+([-.]w+)*$"; return Regex.IsMatch(email, pattern); }