Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

MATCH COUNT Regular expression

Former Member
0 Likes
621

Hello,

does anybody know why these statements return mcount = 1 and not mcount = 4???

FIND 'a' IN 'aabaa' MATCH COUNT mcount.

FIND REGEX 'a+' IN 'aabaa' MATCH COUNT mcount.

Thank you

Manuel

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
429

Try adding option "ALL OCCURRENCES" to yur example.

Best!

Jim

1 REPLY 1
Read only

Former Member
0 Likes
430

Try adding option "ALL OCCURRENCES" to yur example.

Best!

Jim