Regex quantifiers {,n} vs. {0,n}?

May 20, 2008
12,331
134
Syracuse, NY, USA
The help says

Take Command / TCC Regular Expression Syntax
{,n} at least 0 but not more than n times ({0,n})

Shouldn't all of these give 1?

Code:
v:\> echo %@regex["ab{0,1}c",abc]
1

v:\> echo %@regex["ab{0,1}c",ac]
1

v:\> echo %@regex["ab{,1}c",abc]
0

v:\> echo %@regex["ab{,1}c",ac]
0
 

Similar threads