Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Oddness with regex quantifiers

by cdarke (Prior)
on Nov 25, 2010 at 13:34 UTC ( [id://873639]=note: print w/replies, xml ) Need Help??


in reply to Oddness with regex quantifiers

This is not specific to Perl. In the POSIX standard for Extended Regular Expressions (The Open Group Base Specifications Issue 7):

...an interval expression of the format "{m}" , "{m,}" , or "{m,n}"

And yes, Perl supports many other extensions that are not in POSIX.

Replies are listed 'Best First'.
Re^2: Oddness with regex quantifiers
by talexb (Chancellor) on Nov 25, 2010 at 15:32 UTC

    Too bad .. I just thought for the sake of orthogonality that {,m] should have been present, with an implied 1 for the missing value. But it sounds like there are equally good arguments for having the implied value be 0 .. so perhaps the decision was made not to implement that grammar at all.

    Lesson learned .. thanks for the udpate.

    Alex / talexb / Toronto

    "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://873639]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-04-19 06:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found