0
string sContent="the path is e:\\develop\\East\\parser(delay)";
string path="e:\\develop\\East\\parser(delay)";
char sRegex[128]; sprintf(sRegex, "\\Q%s\\E", src_str);
pcrecpp::RE(sRegex).PartialMatch(sContent);
它不匹配,原因"\\East" will abort '\Q'
。如何解決此錯誤?pcre Q和 E匹配錯誤
很好,它運作良好! – guardiola