Art*_*spb 9 c++ ignore-case boost-regex
你如何使用boost::regex_searchC++中的忽略大小写标志或常量?
请发一个简单的例子.
谢谢!
O.C*_*.C. 13
你需要这样的东西
boost::regex regex("your expression here", boost::regex::icase);
boost::smatch what;
string mystring;
bool search_result = boost::regex_search(mystring.begin(),mystring.end(), what, regex);
Run Code Online (Sandbox Code Playgroud)