PDA

View Full Version : URLS


Nick Constantinou
08-12-2000, 01:50 PM
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.

SPG
08-14-2000, 06:45 PM
So you're 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 "<li><a href=""" & objMatch.subMatches(0) & """>" & objMatch.subMatches(0) & "</a>" & vbCrLf<BR>next<BR><BR>?