[chore](mac compile) remove using regex to avoid mac compile failed frequently #30783

This commit is contained in:
camby
2024-02-04 14:14:17 +08:00
committed by yiguolei
parent 1d39e16eda
commit 91a669f5fd

View File

@ -44,11 +44,6 @@ using std::vector;
using std::string;
using std::stringstream;
using boost::regex;
using boost::regex_error;
using boost::regex_match;
using boost::smatch;
using ::google::protobuf::RepeatedPtrField;
namespace doris {
@ -304,7 +299,7 @@ Status DeleteHandler::parse_condition(const std::string& condition_str, TConditi
const char* const CONDITION_STR_PATTERN =
R"(([\w$#%]+)\s*((?:=)|(?:!=)|(?:>>)|(?:<<)|(?:>=)|(?:<=)|(?:\*=)|(?:IS))\s*('((?:[\s\S]+)?)'|(?:[\s\S]+)?))";
boost::regex ex(CONDITION_STR_PATTERN);
if (regex_match(condition_str, what, ex)) {
if (boost::regex_match(condition_str, what, ex)) {
if (condition_str.size() != what[0].str().size()) {
matched = false;
}