asp去除html标记与空格的正则

2019-12-23,,

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

《asp去除html标记与空格的正则.doc》

下载本文的Word格式文档,以方便收藏与打印。