How can I extract overlapping matches from an input using String.split()?
String.split()
For example, if trying to find matches to \"aba\":
\"aba\"
I would use indexOf.
for(int i = text.indexOf(find); i >= 0; i = text.indexOf(find, i + 1)) System.out.println(find + " found at " + i);