split using boost::is_any_of confuses over delimeter ",," and ","
boost, c++
Solution
`is_any_of(",,")` will match anything that's specified in the list. In this case either `,` or `,`
What you are looking for is along the line of
boost::algorithm::split_regex( vct, str, regex( ",," ) ) ;
Problem
I currently have a string that has the following structure ``` xxx,xxx,xxxxxxx,,xxxxxx,xxxx ``` Now I am using the following code ``` std::vector< std::string > vct; boost::split( vct, str, boost::is_any_of(",,") ); ``` Now the boost splits up the string once it finds "," and not ",," which I dont want. Is there any way that I could explicitly specify that it should split only if it finds ",," and not ","