using System.Text.RegularExpressions;
public static string replaceImgUrl(string html) { if (html == null) return ""; Regex regex = new Regex(@"\<IMG[^\>]+\>", RegexOptions.IgnoreCase); html = regex.Replace(html, "");
Regex regex1 = new Regex("<(.|\n)+?>", RegexOptions.IgnoreCase); html = regex1.Replace(html, ""); return html; }
转载于:https://www.cnblogs.com/pengbp/archive/2012/07/22/2603933.html