Can I setting split_regex working based on groups instead of using lookbehind?
The code I'm using is as follows:
string data = "xyz: 111.222: k.44.4: 12345";
vector<string> data_vec;
boost::algorithm::split_regex( data_vec, data, boost::regex("(:\s*)\d"));
my expected result is:
xyz
111.222: k.44.4
12345
In case you are open to other solutions, one using
std::regexwould be::\s*separator.[Demo]