Add regex_matches() to reduce HAVE_PCRE2 ifdefs