Use std::regex instead of PCRE.