//过滤脏话函数function chkbadwords(fstring,badwords)dim bwords bwords = split(badwords, "|") for i = 0 to ubound(bwords) fstring = replace(fstring, bwords(i), string(len(bwords(i)),"*"), 1,-1,1) nextchkbadwords = fstringend function用正则表达式突出显示字符串中查询到的单词的函数function boldword(strcontent,word) dim objregexp set objregexp=new regexp objregexp.ignorecase =true objregexp.global=true
objregexp.pattern="(" & word & ")" strcontent=objregexp.replace(strcontent,"<font color=""#ff0000"">$1</font>" )
set objregexp=nothing boldword=strcontent end function
我写ASP时常用到的一些函数(2)-ASP教程,ASP应用
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 我写ASP时常用到的一些函数(2)-ASP教程,ASP应用
相关推荐
- 暂无文章
