Knowledge Base

Snippets

27

Public string ReplaceWithBR(string target)

Regex regex = new Regex(@"(\r\n|\r|\n)+");

string newText = regex.Replace(target, "<br />");

}

Posted in: C Sharp - C#

Post Rating

Comments

There are currently no comments, be the first to post one!

Post Comment

Name (required)

Email (required)

Website