- May
- 13,399
- 190
The help says
Take Command / TCC Regular Expression Syntax
Shouldn't all of these give 1?
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