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 脚踏祥云 阅读(245) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 脚踏祥云 Powered by .NET 9.0 on Kubernetes