#include <boost/xpressive/xpressive_dynamic.hpp>
using namespace std;
using namespace boost::xpressive;
//正则表达式
cregex reg = cregex::compile("\\d+",icase);
assert(regex_match("12",reg));
boost::xpressive::cmatch what;
regex_search("1a2,3f",what,reg);
assert(what.size());
cout<<what[0]<<endl;
cout<<what[1]<<endl;
//字符串分割
#include <boost/assign/std/vector.hpp>
#include <boost/algorithm/string.hpp>
int _tm......
阅读全文