asp.net 过滤图片标签的正则
更新时间:2009年07月18日 13:53:45 作者:
asp.net 图片过滤正则实现代码。
复制代码 代码如下:
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;
}
相关文章
asp.net获取ListView与gridview中当前行的行号
这篇文章主要介绍了asp.net获取ListView与gridview中当前行的行号,实例分析了asp.net针对ListView与gridview获取行号的实现技巧,需要的朋友可以参考下2016-01-01ASP.NET笔记之页面跳转、调试、form表单、viewstate、cookie的使用说明
ASP.NET笔记之页面跳转、调试、form表单、viewstate、cookie的使用说明2013-04-04
最新评论