Given some string:
"this is a test string ababababa"
And some "stop" words to remove:
"rin" "hi" "tri" "ababa"
The resulting string becomes
"ts is a test sg "
So I basically want to do the equivalent of the following (efficiently with a regex):
For each stop word, slide it across the main string, one character at a time. Any time there's a pattern match, I "mark" the corresponding letters for removal later.
After all stop words have been processed, remove any letters from the main string that are marked.