Good point. I even suggested 0 earlier in this thread, but now I think 1 would be a better choice. I guess I'm spoiled by how well Perl deals with default values; I though it would DWIM in this case.
And I was wrong. I'm now chastened, older and wider wiser; and I'm using {1,5} in my regex.
In reply to Re^2: Oddness with regex quantifiers
by talexb
in thread Oddness with regex quantifiers
by talexb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |