网络编程
位置:首页>> 网络编程>> 网络编程>> asp去除html标记与空格的正则

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

  发布时间:2022-12-15 08:40:12 

标签: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,"&nbsp;","")
       str=replace(str," ","")
       nohtml=str 
       set re=nothing 
end function

0
投稿

猜你喜欢

手机版 网络编程 asp之家 www.aspxhome.com