ensure regexes match all of input