Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML link extractor

Status
Not open for further replies.

Calypso06

Programmer
Feb 18, 2005
15
US
Hello. I've been trying to extract all the links out of a html document.

I need help. I do not know where to begin. :(

the link format that is to be extracted is

is there a code to get the string between some a delimiter?
like " the delimiter being """ of course.

that would be a possible solution.
 
One place to begin is thread222-1044831 where you asked a very similar question and got several comprehensive and detailed answers. You should also read faq222-2244 to see how to get the best from the forum. There is a section there on how to do basic research.

You could also try using Instr() and Mid$() functions, both of which are well documented in VBHelp

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'If we're supposed to work in Hex, why have we only got A fingers?'
Essex Steam UK for steam enthusiasts
 
Or you could use the Document Object Model, and just suck those links out with a GetElementsByTag ...
 
i used regexp with the pattern
"http://[^>""]*
 
It's a reasonably impressive step to go from "I don't know where to begin" to "I used regexp" !
 
[rofl2]

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'If we're supposed to work in Hex, why have we only got A fingers?'
Essex Steam UK for steam enthusiasts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top