Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^3: Regular Expression Testby LanX (Saint) |
on May 06, 2017 at 19:46 UTC ( [id://1189686]=note: print w/replies, xml ) | Need Help?? |
Hi Discipulus tybalt89 is combining the \G meta with //gc modifiers
And after combining with recursive calls this permits to parse nested structures. See perldocs for examples and details of this technique (e.g. perlretut ) or Friedl's Regex Book. Or even better older threads in the monastery :) You shouldn't be despaired, the demonstrated code is neither easy to read nor maintain. It should better use //x modifiers and more comments, but obfuscated wizardry is of course cooler! ;-))
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|