Did you look at `Regex.findAllIn`? It seems to me that would be a bit better that doing `indexOf` work.