using System;
using System.Text;
using System.Text.RegularExpressions;
public class Test
{
public static void Main()
{
// your code goes here
var s = "I have a a string like this \\nThis is a new line string\\nThis is another-new-line";
Console.Write(Regex.Escape(s));
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uVGV4dDsKdXNpbmcgU3lzdGVtLlRleHQuUmVndWxhckV4cHJlc3Npb25zOwpwdWJsaWMgY2xhc3MgVGVzdAp7CglwdWJsaWMgc3RhdGljIHZvaWQgTWFpbigpCgl7CgkJLy8geW91ciBjb2RlIGdvZXMgaGVyZQoJCXZhciBzID0gIkkgaGF2ZSBhIGEgc3RyaW5nIGxpa2UgdGhpcyBcXG5UaGlzIGlzIGEgbmV3IGxpbmUgc3RyaW5nXFxuVGhpcyBpcyBhbm90aGVyLW5ldy1saW5lIjsKICAgICAgICBDb25zb2xlLldyaXRlKFJlZ2V4LkVzY2FwZShzKSk7CgoJfQp9Cg==