Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Perl Complains of Nested Quantifiers

by sunmaz (Novice)
on May 22, 2012 at 16:15 UTC ( #971822=note: print w/replies, xml ) Need Help??


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. $

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://971822]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2018-06-24 00:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (126 votes). Check out past polls.

    Notices?