asp去除html标记与空格的正则
摘要:functionnohtml(str)dimreSetre=newRegExpre.IgnoreCase=truere.Global=Tru...
functionnohtml(str)
dimre
Setre=newRegExp
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
setre=nothing
endfunction
【asp去除html标记与空格的正则】相关文章:
上一篇:
asp正则表达式匹配数字$数字$数字$
下一篇:
JScript 8.0 正则表达式语法