Adding support for multiple regexes