I try to split the following text:
std::string text="1,2,3,max(4,5,6,7),array[8,9],10,page{11,12},13";
I have the following code:
std::vector<std::string> found_list;
boost::split(found_list,text,boost::is_any_of(","))
But my desired output is:
1
2
3
max(4,5,6,7)
array[8,9]
10
page{11,12}
13
Regarding parentheses and braces, how to implement it?