Well, the problem with this interface is that may not find all
occurrences of pattern. Consider text="ababa" and pattern "aba". There
are clearly two matches, the first starts at index 0 and the second at
index 2. Using the interface above, I only get the one at index 0.

The point is that I can not just drop all matched characters. I may
still need them.