View Single Post
  #1 (permalink)  
Old 10-12-2007, 04:01 PM
MM2forever's Avatar
MM2forever MM2forever is offline
Junior Member
 
Join Date: Jun 2007
Location: Germany
Posts: 49
Send a message via ICQ to MM2forever Send a message via MSN to MM2forever Send a message via Skype™ to MM2forever
Default Get all links from an html file using regex

Hi guys,
I am trying to get links from an html file. My code (important parts of it) looks like this:
regex.new1("href=(.*?)[\s>]")

match.value=regex.match(htmtemp)
Do While match.success=True
list.add(SubString(htmtemp,match.index,match.lengt h))
match.value=match.nextmatch
Loop

Im not getting any results, whats wrong? Is it my regular expression itself?

Thank you for your help
Christian
[MM2forever]
__________________
Regards, Christian

>> My PPC Hardware <<


There are 10 kinds of people: Those who understand binary, and those who don't.
Reply With Quote