asp html 正则 asp去除html标记与空格的正则
人气:0想了解asp去除html标记与空格的正则的相关内容吗,在本文为您仔细讲解asp html 正则的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点: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
加载全部内容