(PUP-957) Add checks for match against "any regular expression"