mardi 26 juillet 2022

How to split a string using regex in c++?

I have a string and I need to split that string using regex.
(I have done this without using regex.)

Input: 
           str = "line (94 * SCALE, 10 * SCALE, 62 * SCALE, 10 * SCALE);"  
Output:
          firstSubPart = line
          secondSubPart = (94 * SCALE, 10 * SCALE, 62 * SCALE, 10 * SCALE);

Aucun commentaire:

Enregistrer un commentaire