手机
当前位置:查字典教程网 >编程开发 >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 操作INI文件的读写

asp.net 将设有过期策略的项添加到缓存中

asp.net cookie清除的代码

asp.net实现C#绘制太极图的方法

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

asp.net webservice返回json的方法

asp.net显示自己的网页图标的几种方式

asp.net图片上传实例

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

asp.net 生成曲线图实现代码

精品推荐
分类导航