use std::string::find() to find the first $. use std::string::substr() to extract the portion of the string
from the beginning up to the $. use std::string::substr() to "crop" off that beginning portion.
Repeat to get the next field, etc.
this is the input string ad i want to split the string with "= Payments::"
The output will be like it will splits three string arrays as
splitted_array[1]="Source:Registration \n Table:Calls \n Options: \n Calls::date = ";
splitted_array[2]="PayDate \n \n Source:Registration \n Table:Employee \n Options: \n Employee::Id ";
splitted_array[3]="EmpId";
as i am splitting the string with the string "= Payments::";