正则表达式为什么没有过滤这代码??
Function stripHTML(strHTML)
Dim objRegExp, strOutput
Set objRegExp = New Regexp
objRegExp.IgnoreCase = True
objRegExp.Global = True
objRegExp.Pattern = "<.+?>" '代表<.......>
strOutput = objRegExp.Replace(strHTML, "")'是替换啊,把<.+?>替换为""不显示,你可以使用"*"看效果
strOutput = Replace(strOutput, "<", "<")
strOutput = Replace(strOutput, ">", ">")
stripHTML = strOutput
Set objRegExp = Nothing
End Function
但是我读数据库的值是还有有这样的标签,如下是我从数据库中用正则表达式读出的数据:
screen.width-333)this.width=screen.width-333" border=0>新款风扇 screen.width-333)this.width=screen.width-333" border=0>海尔的整体厨房 screen.width-333)this.width=screen.width-333" border=0>海尔的整体厨房 screen.width-333)this.width=screen.width-333" border=0>精美的电熨斗 screen.width-333)this.width=screen.width-333" border=0>各
相关推荐
仿 蚂蚁森林 app网页游戏源代码.zip
仿 蚂蚁森林 app网页游戏源代码.zip
node.js+redis实现消息队列
程序在nodemq文件夹下 1 默认队列 http://127.0.0.1:8000/get?data 2 自定义队列 http://127.0.0.1:8000/get?queueName=队列名称 获取队列内容: http://127.0.0.1:8000/getList?队列名称 http://127.0.0.1:8000/getList queueName 获取队列长度: http://127.0.0.1:8000/getLen http://127.0.0.1:8000/getList queueName">一个NodeJS和redis做的基于http协议使用的队列 做了点小修改 支持多个队列和post提交 原github地址:https://github.com/lnmp/nodemq 使用方法: 在安装好redis和nodejs后 配置config js 执行: $ node index js 启动服务 入队: 1 默认队列
Node.js-redis-一个node.jsredis客户端
用于node.js功能丰富、完整的Redis客户端。 它支持所有Redis命令,并专注于高性能。
Node.js-ioredis一个用于Node.js专注性能强大功能全面的Redis客户端
ioredis一个用于Node.js专注性能,强大,功能全面的Redis客户端
async-redis-mock:Node.js异步Redis客户端模拟对象用于单元测试
异步重装模拟 背景 通过激发和这个回购旨在提供的特征完全模拟async-redis写依赖于代码单元测试时可以互换使用async-redis 。 所有操作均在内存中执行,因此不需要Redis安装。


