|
|
| P is for Practical | |
| PerlMonks |
Re: More Power to your Regexby Juerd (Abbot) |
| on Apr 02, 2002 at 00:28 UTC ( #155889=note: print w/ replies, xml ) | Need Help?? |
|
I really, really like this approach, and think it should be implemented in Perl 6, or if possible even sooner. This is a much cleaner solution than the clumsy variable evaluation. This is not at all xml-compliant, but at least handles simple data. Could it be that backreferences (like \2) in this case or conditionals (like (?(3)) don't work the way they should, when your patch is used?. UPDATE The new version of robin's patch does parse the deeper recursion correctly. See also: Re: Recursive Regex: Update.
In Section
Meditations
|
|
||||||||||||||||||||||||