Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1683

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

$
0
0
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

Viewing all articles
Browse latest Browse all 1683

Trending Articles