asp.net 过滤图片标签的正则
2009-07-18 00:00
716 查看
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正则表达式提取网页网址、标题、图片实例以及过滤所有HTML标签实例
- asp.net 过滤图片标签的正则
- ASP.NET正则表达式提取网页网址、标题、图片实例以及过滤所有HTML标签实例
- asp.net正则表达式提取网页网址、标题、图片实例以及过滤所有HTML标签实例
- asp.net正则表达式提取网页网址、标题、图片,滤所有HTML标签
- asp.net 正则表达式过滤所有html标签
- asp.net正则表达式过滤标签和数据提取
- asp.net正则表达式提取网页网址、标题、图片,滤所有HTML标签
- asp.net过滤HTML标签,只保留换行与空格
- ASP.NET过滤HTML标签只保留换行与空格的方法
- asp.net正则表达式删除指定的HTML标签的代码
- asp.net过滤html标签
- 用正则表达式过滤脚本的研究(ASP.net)
- asp.net(VB)中使用正则获取图片地址并进行下载.
- Asp.net 使用正则过滤信息
- ASP.NET过滤HTML标签只保留换行与空格的方法
- asp.net过滤HTML标签的几个函数
- asp.net 正则替换html标签与删除指定字符方法
- asp.net 截取带有html标签的字符串(先过滤html,再截取)的方法
- ASP.NET 过滤html中的图片与换行