almost done, but now i can't figure out substringBetweenMatches