摘要: #region 验证身份证是否有效 /// /// 验证身份证是否有效 /// /// /// public static bool IsIDCard(string Id) { if (Id.Length == 18) { bool check = IsIDCard18(Id); return check; } else if (Id.Length == 15) { bool check = IsIDCard15(Id); return check; } else { return false; } } public static bool IsIDCard18(string Id)... 阅读全文
posted @ 2014-04-10 16:37 混世小郎君 阅读(1213) 评论(0) 推荐(0) 编辑
摘要: /// /// 去除html标签 /// public static string ClearHtmlTag(string strText) { try { string html = strText; html = Regex.Replace(html, @"]+/?>|]+>", "", RegexOptions.IgnoreCase); html = Regex.Replace(html, @"-->", "", RegexOptions.IgnoreCase); html = Regex. 阅读全文
posted @ 2014-04-10 16:16 混世小郎君 阅读(555) 评论(0) 推荐(0) 编辑