Example string: "office administration in delhi"
I want to replace in from the string with a blank. But when I do, s.replace('in',"")
, the in of administration also becomes blank.
This is just a sample. The string and the word to replace may vary.
Is there some way to replace only the exact match?