public static bool IsEmailFormat( this string item) {
var pattern = @"^(\w)+(\.\w+)*(\-\w+)*@(\w)+((\.\w+)+)$";
return Regex.IsMatch(item, pattern);
}
posted on 2018-09-04 11:51 脚踏祥云 阅读(270) 评论(0) 收藏 举报
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3