I have a string like below:
(A-B,C&D-E,F,G&H-I,J,K);
In the above string i used split command with "&" and got following elements :
(A-B,C); (D-E,F,G) ;(H-I,J,K);
In the above element added Z in second element :
(A-B,C); (D-E,F,G,Z); (H-I,J,K);
Now want to reconstruct string to original with z added for example :
(A-B,C&D-E,F,G,Z&H-I,J,K);
Kindly share your suggestions thank you.
A-B,C&D-E,F,G&H-I,J,Kor does it have the parentheses and semicolon too? Be exact. It affects the exact answer you get.