in reply to Oddness with regex quantifiers
I would think that a reason, is that there is no reasonable default.
Just as we have * for zero or more and + for 1 or more; either 0 or 1 would be equally valid defaults for {,n}. Since there is no hamming difference between them, how would you pick one over the other to be the default?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Oddness with regex quantifiers
by talexb (Chancellor) on Nov 23, 2010 at 22:18 UTC | |
by t.b.b. (Initiate) on Nov 23, 2010 at 22:44 UTC |