asp去除html标记与空格的正则
发布时间:2016-12-29 来源:查字典编辑
摘要: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