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.
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
| [reply] [d/l] |
|