最新下载
热门教程
- 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
本站原创:转载请注明
相关文章
- 知聊如何设置收费 03-26
- 小宇宙app如何上传音频 03-26
- 如何使用作业帮家长版 03-26
- 民生银航app如何修改预留手机号 03-26
- 俄罗斯引擎yandex入口怎么无需登录 03-26
- 如何在PPT中插入背景音乐并设置播放 03-26