regex: adds pcre wrapper for regex matching