Is regex capable of matching patterns which might be separated by a different pattern?
E.g.: A{3}B{2}
would match AAABB. How can I make it match ABABA?
As this is just an example, I am not looking for a way to match all permutations of AAABB, but to learn a generic method. :-)