public static class StringExt { public static bool IsEmail(this string obj) { return Regex.IsMatch(obj,@"^\w+@\w+\.\w+$"); } } 相关文章: