Change so that when regex match is enabled an exact target match succeeds

This change in behaviour is less suprising - globally enabling support for regex matching
will not generally change the behaviour as an exact match is OK too.