Using std::regex instead of pcre

Using std::regex_match instead of pcreposix.h