64,643
社区成员
发帖
与我相关
我的任务
分享
std::string strDosPath = { "\\Device\\Harddisk1\\DP(1)0-0+3\\BOOTEX.LOG" };
std::regex re(R"(((\\[^\\]*){3})\\.*)");
std::cmatch m;
std::regex_match(strDosPath.c_str(), m, re);
std::cout << m[1].str() << std::endl;