Re: Extract url and text from a website

2008-09-16 Thread Peter Scott
On Mon, 15 Sep 2008 08:35:34 -0700, [EMAIL PROTECTED] wrote: > I'm trying to parse a webpage and obtain the urls and text contained > within the anchor tags. I've looked at various pages such as Mechanize > and TokeParser, but they don't seem to do what I want. Basically, what > I have is > a webpa

Re: Extract url and text from a website

2008-09-16 Thread Alan Haggai Alavi
Hi, Do not use regular expressions to parse HTML. Regexps will break at some point. Use HTML::Parser. Regards, Alan Haggai Alavi. -- The difference makes the difference. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/