建站代码网

热门标签

asp过滤<img>图片的正则表达式函数

function noHTML(str)
dim re
Set re=new RegExp
re.IgnoreCase =true
re.Global=True
’re.Pattern="(<.[^<]*>)"
’str=re.replace(str," ")
re.Pattern="(<img[^<]*>)"
str=re.replace(str," ")
nohtml=str
set re=nothing
end function
X