实现代码如下:

'去掉html中的table代码
Function OutTable(str)
dim a,re
set re=new RegExp
re.pattern="<(?!img|br|p|div).*?>"
re.global=true
a=str
OutTable=re.replace(a,"")
End Function

以上就是【asp去掉html,保留img br p div的正则实现代码】的全部内容了,欢迎留言评论进行交流!

赞(0) 踩(0)
发表我的评论

最新评论

  1. 暂无评论