I was trying to replace \\n by \\\\n in a string in typescript. As i wanted to replace all occurrences, the best option was to use a regex expressi
\\n
\\\\n