in reply to Re: Parsing HTML/XML with Regular Expressions (XML::Twig)
in thread Parsing HTML/XML with Regular Expressions
Thanks very much for the contribution! Regarding the DATA and issues, see my reply here - although I assume you meant $twig->parse(*DATA) instead of $twig->parse(<DATA>)? With the updated example in the root node, your code works!
And yes, I assumed someone might take up the challenge of actually using a regex - but of course then I'd have to try to break it with more test cases ;-)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Parsing HTML/XML with Regular Expressions (XML::Twig)
by Discipulus (Canon) on Oct 17, 2017 at 19:45 UTC | |
by haukex (Archbishop) on Oct 18, 2017 at 19:21 UTC |