首页
微信
安卓
接口
移动
前端
专题
文档库
工具
网址
§
ITPOW
>>
文档
>>
ASP
>>
ASP资料
ASP 去除 HTML 标记与空格的正则
作者: 来源: 日期:2010-11-29
用 ASP 实现的去除内容的 HTML 标记和空格的实现代码。
function nohtml(str) dim re Set re = new RegExp re.IgnoreCase = true re.Global = True re.Pattern = "(\<.[^\<]*\>)" str = re.replace(str," ") re.Pattern = "(\<\/[^\<]*\>)" str = re.replace(str," ") str = replace(str," ","") str = replace(str," ","") nohtml = str set re = nothing end function
相关文章
创建于2005年
渝ICP备05010272号-1
电邮:
cftea@126.com
即将跳转...