Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用std::regex,下一个代码给我例外:
std::regex
try { regex rnl("\\b(sub)([^ ]*)"); } catch (regex_error& e) { cout << e.code() << endl; }
e.code()== 2,我觉得有什么问题\\b。我怎样才能创建正确的regex?
e.code()
\\b
regex