add support for arrays of regexes to match