I am looking for a 'Regex' to replace \n\ from my string. I already looked thorough this post and other regex posts here, but in my case I need to remove the value \n\ from a string not a new line or (\n).
For example:
string eneteredString = @"abc\n\def\n\ghi\n\\";
Here \\ can be found multiple times too.
I have already tried Replacing Enviornment.NewLine, as it is not a new line in my case, it also didn't work. When I try below code,
string regout = Regex.Replace(enteredString, @"\n\","");
It says parsing "\n\" - Illegal \ at the end of pattern . Can you anyone please help me with the same. Thanks in advance.
