in reply to Re: Must do regex range quantifier { } as a greedy
in thread Must do regex range quantifier { } as a greedy

Your elegant solution will match the rightmost case of "aab+" not the longest, but it's unclear to me whether that is relevant for the OP. ;-)
  • Comment on Re^2: Must do regex range quantifier { } as a greedy