in reply to Re^5: How can I access the number of repititions in a regex?
in thread How can I access the number of repititions in a regex?

Good idea, driver8 -

The only limitation of this solution being that it only works for match strings of length 1. Also, the result of the number of matches is only available outside the regex.

What I would like to have is a regex that can extract something like "give me all matches containing one more 'b' than 'a's".

abb matches
aabbb matches
aabb does not match

I think we need a code evaluation expression to solve this, so something along the lines suggested by grizley below.

Thanks for your input!

Cheers -

Pat