设为首页 - 加入收藏
广告 1000x90
您的当前位置:主页 > 微商引流 > 引流技巧 > 正文

asp利用正则去掉字符串中所有html内容

来源:网络分享 编辑:引流技巧 时间:2025-06-25

img,得到html">所有文本内容,运行一下就知道效果了,超连接,去掉的内容有:div,script脚本等html内容, % FunctionRemoveHTML(strText) DimRegEx SetRegEx=NewRegExp RegEx.Pattern=[^]* RegEx.Global=True RemoveHTML=RegEx.Replace(strText,将以下例子保存为asp文件, 利用正则表达式去掉字符串中所有html内容。

) EndFunction str=htmlbodyahref=a.asp打开/aimgsrc=1.jpgdivclass=a3aaa/div/body/html response.writeremovehtml(str) % 。

栏目分类

微商引流技巧网 www.yinliujiqiao.com 联系QQ:1716014443 邮箱:1716014443@qq.com

Copyright © 2019-2024 强大传媒 吉ICP备19000289号-9 网站地图 rss地图

Top