asp.net 图片过滤正则实现代码。
代码如下:
public static string replaceImgUrl(string html)
{
if (html == null)
return “”;
{
if (html == null)
return “”;
System.Text.RegularExpressions.Regex regex = new System.Text.RegularExpressions.Regex(@”\]+\>”, System.Text.RegularExpressions.RegexOptions.IgnoreCase);
html = regex.Replace(html, “”); //过滤frameset
return html;
}
以上就是asp.net 过滤图片标签的正则的详细内容,更多请关注gaodaima搞代码网
来源gao!daima.com搞$代!码网
其它相关文章!