Remove ‘\’ char from string c# May 29, 2023 by Tarik You could use: line.Replace(@"\", ""); or line.Replace(@"\", string.Empty);