c# remove line break from string code example
Example: c# regex replace all line breaks
Regex.Replace((text ?? "").Replace("'", @"\'").Trim(), @"[\r\n]+", " ");
Regex.Replace((text ?? "").Replace("'", @"\'").Trim(), @"[\r\n]+", " ");