This question already has an answer here:
- String replacement using a dictionary 3 answers
I want to replace multiple string patterns with a different set of predefined strings.
This sentence will be converted to something different. This sentence can contain same words.
These words need to be replaced with something different. These words can contain same alphabets.
So here I want to convert in below pattern.
- This =>These
- sentence =>word
- will =>need to
- to => with
- words => alphabets
Let me know if it can be done.