Welcome to the Monastery | |
PerlMonks |
Re: Extracting a substring from HTMLby mugwumpjism (Hermit) |
on Sep 11, 2006 at 04:13 UTC ( [id://572269]=note: print w/replies, xml ) | Need Help?? |
Check out XML::LibXML for the nice ways to do this, using standards such as XPath and DOM. Regular expressions are not a very good way to parse structured input like XML, unless you can limit the input to a known subset of XML forms.
In Section
Seekers of Perl Wisdom
|
|