added support for regex targets