replace \n\n with tab c# code example Example: c# regex replace all line breaks Click to copyRegex.Replace((text ?? "").Replace("'", @"\'").Trim(), @"[\r\n]+", " ");