boost正则表达式求助
想写个判断字符串的正则表达式:中文、英文字母、下划线的组合,用的是c++,boost的正则表达式库。那边厢java写的
String name_pt = "^[A-Za-z0-9_\u4e00-\u9fa5]+$";
std::string name_pt = "^[A-Za-z0-9_\u4e00-\u9fa5]+$";//英文字母、数字、下划线组合std::string userName = std::string(this->et_userName->GetValue().mb_str());bool flag = boost::regex_match(userName, name_exp)