in reply to Re: ERROR ... nested quantifiers in regex
in thread ERROR ... nested quantifiers in regex

it seems that this line [^{}]++ # one or more {} brackets, non backtracking is causing the error ... and to be honest, I tried to understand it but i couldn't

Replies are listed 'Best First'.
Re^3: ERROR ... nested quantifiers in regex
by Anonymous Monk on Jul 06, 2011 at 12:20 UTC
    You need to use a perl older than 5.10 to use these regex features you were trying to use, they were introduced in
    p595-Possessive Quantifiers
    Perl now supports the "possessive quantifier" syntax of the "atomic match" pattern. Basically a possessive quantifier matches as much as it can and never gives any back. Thus it can be used to control backtracking. The syntax is similar to non-greedy matching, except instead of using a '?' as the modifier the '+' is used. Thus ?+, *+, ++, {min,max}+ are now legal quantifiers. (Yves Orton)
      ... a perl older than 5.10 ...

      Should be: "... a Perl of version 5.10 or newer ...".

        Right :) older in the human sense, bigger age (version number )