HI Everyone,
I have one sample string below,
str formula = "A+0.3*B+AC";
Now I want to replace character A first with some value and then AC with some Value.
I am trying to build formula. Please suggest how can I achieve this?
If I use strReplace my formula gets modified as below
modFormula = strReplace(formula, "A", "15");
modFormula = 15+0.3*B+15C
It not only replaces first A but also A from AC.
Is there any solution?