最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp 非法关键词过滤程序
时间:2022-07-02 22:32:55 编辑:袖梨 来源:一聚教程网
Public Function FilterBad(str)
If str = "" Or IsNull(str) Then
FilterBadWord = ""
Exit Function
End If
Dim i,badWordSplit,filterSplit
badWordSplit = Split(Cfg.badWordFilter,"|")
For i = 0 To UBound(badWordSplit)
filterSplit = Split(badWordSplit(i),",")
If InStr(1,str,filterSplit(0),1) Then str = Replace(str,filterSplit(0),filterSplit(1))
Next
FilterBadWord = str
End Function
'使用方法
dim stra
stra = FilterBadWord(request.Form(fom))
相关文章
- JavaScript正则表达式实现注册信息校验功能 09-28
- 正则表达式中.+?与.?的区别 09-28
- 一看就懂的正则表达式教程 09-28
- Snort中pcre和正则表达式的使用详解 09-28
- 在nest.js中通过正则表达式正确设置验证的方法 09-28
- 正则表达式之字符串模式匹配实例详解 09-28