lundi 17 janvier 2022

C++ trim string with multiple delimiters

I have the following string: ( myFirstEntry ( one 1;) mySecondEntry ( two 2; mySubSecondEntry (subTwo 22;)) myThirdEntry (three 3;)

I would like to retrieve the keyword and the value as a string:

The end result is expected to be:

myFirstEntry , one 1;

mySecondEntry, two 2; mySubSecondEntry (subTwo 22;)

myThirdEntry, three 3;

How can I achieve this?

Aucun commentaire:

Enregistrer un commentaire