How can I replace Line Breaks within a string in C#?
Why not both?
string ReplacementString = ""; Regex.Replace(strin.Replace(System.Environment.NewLine, ReplacementString), @"(\r\n?|\n)", ReplacementString);
Note: Replace strin with the name of your input string.
strin