Image

Imagelone_wolf225 wrote in Imagecpp

I have a program that will connect to a URL that is input by the user, (like a networking client, if I think right) and get all the different URLs referenced there, and print them out to the user afterwards. I know that links are basically set up like this in HTML:

href="link"

When I just searched for the href=, it had problems with certain sites look google. I asked about the problem and I was told to look for the link with quotes in particutlar, like this:

variable = string.find("href="xxx"") (The two outside quotes to set off the particular string).

The thing is, that kind of syntax doesn't work, due to the quotes I think.

Any help as to how I can look for the links with a phrase like that? Because I need the two different quotes that surround the link (so I can just look for links that have that, because some on sites like Google put the end quotes after some HTML and such). And is it allowed to search for something with the 'xxx' thing in it like -> href="xxx" <- because thats what I need to find, maybe it has something to do with setting it off with some kind of characters?

Thanks for any help.