Added splitOnMatches and getMatches