dim stra,strb,isok
stra = "test,you,fuck,money" '需要过滤的关键字内容
strb = "fasfaefwtestfajkewhfwituckjfksajfheyou" '待检查的内容
isok = false '判断是否含有待过滤内容,如果返回true即为含有,false就是没有
dim regexp
set regexp=new regexp
regexp.ignorecase =false
regexp.global=true
dim i,j
j = ubound(split(stra,","))
for i=0 to j
regexp.pattern="("&split(stra,",")(i)&")"
if(regexp.test(strb))then
isok=true
exit for
end if
next
set regexp=nothing
response.write(isok)
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:)!