That said, how is it possible that angle brackets can be embedded in an attribute value, without being converted to < > ? Is that prudent? And why would a "qd" entity be embedded immediately inside another "qd" entity? And why would there be up to three different ways of bracketing this "qd" sort of thing (whatever it is)?
And what does this have to do with Perl?
Update: Sorry -- I over-reacted there. Seeing the perl part of the question:
axml string:I guess Text::Balanced might be a way to start, but really, you might just have to go straight to Parse::RecDescent. But I'm not sure you've given enough of the "motivating principles" to clarify what it is you really need. Based on what I understand from the OP, this would do it:How could one obtain the result:<link action="<qd><qd arg="(qd)ref3(/qd)">ref2</qd></qd>">[qd]ref[/qd] +</link>using conventional cpan modules?<a href="action.pl?action=someaction">a link</a>
That goes against the PM grain of using XML parsing modules when parsing XML, but this doesn't really look like XML, so why worry about it?s{<link action=<qd>.*?</link>}{<a href="action.pl?action=someaction">a + link</a>};
In reply to Re: Transforming axml into hyperlinks
by graff
in thread Transforming axml into hyperlinks
by simonodell
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |