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 ;-)
In reply to Re^2: Parsing HTML/XML with Regular Expressions (XML::Twig)
by haukex
in thread Parsing HTML/XML with Regular Expressions
by haukex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |