SankarB
7 years agoOccasional Contributor
Replace and insert
How can i search for a string and replace with the another value.
I have requirement of some like this
"-------------- Start String -------
Actual string
-----End String --------"
Basically i need to pass only "Actual string" and need to ignore the rest of "------ Start String " "----- Stop String-----"
Can any one pls help me in this.
i have tried with
def a =
"-------------- Start String -------
Actual string
-----End String --------"
a.replace("Start String", "").
But its not actually not working.
Can any one pls help me in this.
Thanks in advance.