Add support for regex in targets