I want the regular expression to match the following pattern:
b abc aabcc aaabccc
But does not match any of:
ab bc aabc abcc
Basically, /(a)*b(c){_Q_}/ , where _Q_ is the number of matches in group 1. I know how to associate group 1 contents later on the line, but how can I match group 1 count ?
source share