RegEx to Replace multiple line breaks in Asp.net
Suppose the text is
“Long Description
With
Multiple
Line
Breaks”
Mulitple line breaks can be replaced with regex as follows:
Regex.Replace(yourlongtext, "[\r\n]+", " - - ");
Comments (0)
Trackbacks (0)
Leave a comment
Trackback
Recent Comments