Tokenistring a string in C++

Hi I have a string like

"12;13;14|aa = 14;bb = 15"

I have to store the values 12,13 and 14 in a list.
and aa,bb in another list.

Can anyone suggest me how to perform this in c++?
:confused:

Do it yourself possibly assisted by strtok(), strpbrk(), sscanf(), strsep(), rindex(), strchr() depending on how dynamic your input is. Do you need to recall which was AA or BB, not a simple array but a table?

I would suggest:

strsep, argz, envz