response.write savepic(str)


function savepic(str)
content
=str&""
regstr
="src\=.+?\.(gif|jpg)"
url
=Replace(Replace(Replace(RegExp_Execute(regstr,content),"'",""),"""",""),"src=","")
savepic
=url
end function

Function RegExp_Execute(patrn, strng)
Dim regEx, Match, Matches,values '建立变量。
Set regEx = New RegExp '建立正则表达式。
regEx.Pattern = patrn '设置模式。
regEx.IgnoreCase = true '设置是否区分字符大小写。
regEx.Global = True '设置全局可用性。
Set Matches = regEx.Execute(strng) '执行搜索。
For Each Match in Matches '遍历匹配集合。
values=values&Match.Value&","
Next
RegExp_Execute 
= values
End Function

相关文章:

  • 2022-12-23
  • 2022-01-02
  • 2021-08-17
  • 2021-11-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-12
  • 2021-09-04
  • 2022-12-23
  • 2022-12-23
  • 2021-10-05
  • 2021-07-13
  • 2022-12-23
相关资源
相似解决方案