REMember has asked for the wisdom of the Perl Monks concerning the following question:
What that line does is it reads in a line of HTML and parses it into smaller divisions. It gives me a token of "a href" to tell me that it is a link. Then the next token in line is the actual link. This works great, until I get to a line that has multiple links on it because I only get the last link for some reason. Does anyone know how to fix that problem? If you know a better way to parse the lines, that will work. I can't use any modules because I don't have the necessary permissions to install them.@lineTokens = split(/(.*)<(.*)=(.*)"(.*)>(.*)/, $lines[$l]);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parsing HTML
by Tanktalus (Canon) on Feb 01, 2005 at 21:56 UTC | |
by Grundle (Scribe) on Feb 01, 2005 at 22:28 UTC | |
by polettix (Vicar) on May 18, 2005 at 17:19 UTC | |
|
Re: Parsing HTML
by sh1tn (Priest) on Feb 01, 2005 at 21:53 UTC | |
|
Re: Parsing HTML
by geektron (Curate) on Feb 01, 2005 at 22:15 UTC | |
|
Re: Parsing HTML
by reneeb (Chaplain) on Feb 02, 2005 at 07:58 UTC | |
|
Re: Parsing HTML
by kprasanna_79 (Hermit) on Feb 02, 2005 at 14:22 UTC |