in reply to Re: Perl Complains of Nested Quantifiers
in thread Perl Complains of Nested Quantifiers

Please refer to my above reply. I hope that is sufficiently detailed.

It is curious that it works on 5.14. It does not on the version I am running (5.8.8).

  • Comment on Re^2: Perl Complains of Nested Quantifiers

Replies are listed 'Best First'.
Re^3: Perl Complains of Nested Quantifiers
by toolic (Bishop) on May 22, 2012 at 16:39 UTC
    I think "Possessive Quantifiers" in perl5100delta Regular-expressions explains the version dependency. I am on 5.12.2, and here is what re shows:
    $ perl -Mre=debug -e '/\d++/' Compiling REx "\d++" synthetic stclass "ANYOF[0-9][{unicode_all}]". Final program: 1: SUSPEND (7) 3: PLUS (5) 4: DIGIT (0) 5: SUCCEED (0) 6: TAIL (7) 7: END (0) stclass ANYOF[0-9][{unicode_all}] minlen 1 Freeing REx: "\d++" $ $ $ perl -Mre=debug -e '/\d+++/' Compiling REx "\d+++" Nested quantifiers in regex; marked by <-- HERE in m/\d+++ <-- HERE / +at -e line 1. $