allow excludeRegex param to be an array of regexps