- <scriptlanguage="vbs">
- 'FunctionCreateKeyWords(KeyWords)
- '关键字生成系统
- Dimi,L,TempStr
- KeyWords_Temp=reReplace(KeyWords,"[\\x00-\\xff]|\\n|| |,|。|、|!|?|:|"|"|[|]|—|—|(|)|…","")
- L=Len(KeyWords_Temp)
- Fori=1ToL-1
- TempStr=TempStr&","&Mid(KeyWords_Temp,i,2)
- Next
- CreateKeyWords=KeyWords&TempStr
- EndFunction
- FunctionreReplace(Str,restrS,restrD)
- '正则表达式写的替换
- 'Madebywww.yongfa365.com
- Setre=NewRegExp
- re.IgnoreCase=True
- re.Global=True
- re.Pattern=restrS
- reReplace=re.Replace(Str,restrD)
- EndFunction
- MsgBoxCreateKeyWords("hello你好啊,你知道我是谁不?,呵呵,我是柳永法()yongfa365知道不")
- </script>
相关文章
猜你喜欢
- ASP.NET自助建站系统中的用户注册和登录功能定制方法 2025-06-10
- ASP.NET自助建站系统的域名绑定与解析教程 2025-06-10
- 个人服务器网站搭建:如何选择合适的服务器提供商? 2025-06-10
- ASP.NET自助建站系统中如何实现多语言支持? 2025-06-10
- 64M VPS建站:如何选择最适合的网站建设平台? 2025-06-10

