using System.Text.RegularExpressions;
public static string NoImage(string Htmlstring)
{
Htmlstring = Regex.Replace(Htmlstring,@"<img[^>]*?/>","",
RegexOptions.IgnoreCase);
return Htmlstring;
}
原文链接:https://www.f2er.com/regex/358266.html