Answers for "remove carriage returns from string c#"

C#
0

remove carriage returns from string c#

// Remove newlines from both sides of the 'example' string variable
string cleaned = example.Trim('\r', '\n');
Posted by: Guest on August-19-2020

Code answers related to "remove carriage returns from string c#"

C# Answers by Framework

Browse Popular Code Answers by Language