手机
当前位置:查字典教程网 >编程开发 >asp.net教程 >asp.net 过滤图片标签的正则
asp.net 过滤图片标签的正则
摘要:复制代码代码如下:publicstaticstringreplaceImgUrl(stringhtml){if(html==null)ret...

复制代码 代码如下:

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 过滤图片标签的正则】相关文章:

asp.net 两个不同页面的传值

asp.net 的错误处理机制讲解

c#中过滤html的正则表达式

c# .net 生成图片验证码的代码

asp.net图片上传生成缩略图的注意事项

asp.net webservice返回json的方法

asp.net创建位图生成验证图片类

asp.net 文章内容分页显示的代码

asp.net gridview多页时的批量删除

asp.net HTML文件上传标签

精品推荐
分类导航