I'm relatively new at c++ programming so bear with me if I make any common mistakes.
I have a string that looks like this:
String str = "[abc, abcde, lkejs, abde], [123, 456, 7890]"
I wish to store each of those values into a vector such that it looks something like:
abc abcde lkejs abde 123 456 7890
I've read up on and tried using Boost tokenizer but I'm restricted from installing new libraries into the operating system which this code is supposed to be run.
I've also tried strtok() but that just confuses me even further as it converts my entire string into chars.
Looking through http://www.cplusplus.com/faq/sequences/strings/split/#boost-split , I probably would be better off using string::find_first_of()
but the examples available there aren't doing much in helping me understand how it works.
Can anyone help me understand the syntax of string::find_first_of()
better or is there a better way of splitting strings without the need to install additional libraries like boost does?