in reply to quantifiers with digits (\d{1|2} doesn't do what I expect)
The syntax for brace quantifiers is to use a comma:
{0,2} # Max of 2 {1,3} # One to three {1,} # One or more {2} # Exactly two {1,2} # One to two.
There is no concept of alternation within quantifier braces.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: quantifiers with digits (\d{1|2} doesn't do what I expect)
by efoss (Acolyte) on Aug 21, 2012 at 16:10 UTC |