I have a string copied from a mutiline text box. I am looking for a method to replace the entire string containing a specific phrase. For example, the line looks like this:
Lorem ipsum dolor sit amet,
consectetur adipiscing elit.
Suspendisse egestas.
So, I would like to find a method to replace the entire line containing, for example, a phrase elit, with a new line enim vehicula pellentesque., so resoult will look like this:
Lorem ipsum dolor sit amet,
enim vehicula pellentesque.
Suspendisse egestas.
Is there a quick way to do this?
thank
Devel source
share