Remove '\' char from string c#
You could use:
line.Replace(@"\", "");
or
line.Replace(@"\", string.Empty);
You can use String.Replace which basically removes all occurrences
line.Replace(@"\", "");
Why not simply this?
resultString = Regex.Replace(subjectString, @"\\", "");