欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

簡單過濾一下廣告的代碼

 更新時間:2006年06月26日 00:00:00   作者:  
好些人跟我要這段東西,其實是個很簡單的代碼,下邊就是,自己拿去改成函數(shù)調(diào)用就可

dim strA,strB,isOK
strA = "test,you,fuck,money"    '需要過濾的關(guān)鍵字內(nèi)容
strB = "fasfaefwTestfajkewhfwiTuckjfksajfheyou"    '待檢查的內(nèi)容
isOK = False    '判斷是否含有待過濾內(nèi)容,如果返回True即為含有,F(xiàn)alse就是沒有

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)

相關(guān)文章

最新評論