C#验证邮箱格式正则表达式
作者:互联网
1 /// <summary> 2 /// 验证邮箱格式 3 /// </summary> 4 /// <param name="email"></param> 5 /// <returns></returns> 6 public static bool IsValidEmail(string email) 7 { 8 return Regex.IsMatch(email, @"^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$"); 9 }
标签:C#,zA,正则表达式,_-,格式,邮箱,Z0,email 来源: https://www.cnblogs.com/wzf-Learning/p/16630180.html