I've removed the regex and replaced it with a more performant `indexOf` simple algo.
Since SearchCursor is not overlapping, I made sure we're not when counting results.