extended support for regex and key regexes