Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

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

May
13,016
174
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

Back
Top