復制代碼 代碼如下:
public static string replaceImgUrl(string html)
{
if (html == null)
return "";
System.Text.RegularExpressions.Regex regex = new System.Text.RegularExpressions.Regex(@"\<img[^\>]+\>", System.Text.RegularExpressions.RegexOptions.IgnoreCase);
html = regex.Replace(html, ""); //過濾frameset
return html;
}