Say I have a file, that contains some text. There are substrings like \"substr1\", \"substr2\", \"substr3\" etc. in it. I need to replace all of those substrings with some o
yourString.replace("substr1", "repl1") .replace("substr2", "repl2") .replace("substr3", "repl3");