最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp 取得内容中的图
时间:2022-07-02 23:17:56 编辑:袖梨 来源:一聚教程网
asp 取得内容中的图这是我常用的一段代码,用正则取得文章内容中的图片地址.
Function getphoto(strHTML,key)
Dim objRegExp, Match, Matches
Set objRegExp = New Regexp
objRegExp.IgnoreCase = True
objRegExp.Global = True
objRegExp.Pattern = key
'
tp=""
Set Matches = objRegExp.Execute(strHTML)
For Each Match in Matches
tp=tp & Match.value
exit for
Next
getphoto=tp
Set objRegExp = Nothing
End Function
本站原创:转载请注明
相关文章
- 崩坏星穹铁道飞机大乱斗第三关指南 07-30
- 王者荣耀世界里有哪些武器 07-30
- 崩坏星穹铁道飞机大乱斗第二关通关攻略 07-30
- QQ空间动态发不了怎么解决 07-30
- 剑与黎明零氪萌新阵容搭配攻略 07-30
- 王者荣耀世界两生关逸事任务攻略详解 07-30