id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 521,"[Regex] Splitting string: last empty token is ""compressed""",nobody,John Maddock,"{{{ toto_lists@hotbox.ru Last empty token is ""compressed"" when using regex_token_iterator for splitting strings. BCB 5.64, boost 1.33.0 See the example, compare it with string_algo splitting: #include #include #include #include #include #include void with_stringAlgo() { using namespace std; vector result; string to_split(""&|&_field2_&|&_field3_&|&""); boost::split_iterator i(to_split.begin(),to_split.end(),boost::first_finder(""&|&"")),j; for(;i!=j;++i) { result.push_back(boost::copy_range(*i)); } cout<<""size is ""< v; copy(i,j,back_inserter(v)); // cout<<""size is ""<(cout,""\n"")); } int main() { with_stringAlgo(); with_regex(); } }}}",Bugs,closed,,regex,None,,Invalid,,