Results 1 to 2 of 2

Thread: URLS

  1. #1
    Nick Constantinou Guest

    Default URLS

    I am trying to use regular expressions to automatically create an index of links from a web page, I will feed it the HTML code and I would like to capture all the URLS into a somesort of array.

  2. #2
    SPG Guest

    Default RE: URLS

    So you&#039re looking for a pattern like<BR><BR>objRE.pattern = "href=""([sS]*?)""" (global = true, ignoreCase = true)<BR><BR>then<BR><BR>set objMatches = objRE.execute(pageGuts)<BR>for each objMatch in objMatches<BR>response.write "&#060;li&#062;&#060;a href=""" & objMatch.subMatches(0) & """&#062;" & objMatch.subMatches(0) & "&#060;/a&#062;" & vbCrLf<BR>next<BR><BR>?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts