Just another Perl shrine | |
PerlMonks |
Re: Re: "CDATA Parsing and XML"by fokat (Deacon) |
on Mar 31, 2003 at 02:06 UTC ( [id://246834]=note: print w/replies, xml ) | Need Help?? |
First of all, a ++ is in order because you shown another approach to the problem. I guess your example might not work as expected, because the regexp is greedy, so if the XML contains more than one CDATA sections, only the first will be seen. I made slight adjustments as shown below...
So that it outputs...
Also, probably hating dot star is in order, but I can't think about a better regexp right now :) . Best regards -lem, but some call me fokat
In Section
Seekers of Perl Wisdom
|
|