C#: What's the best way to delete empty lines from a multiline string?

Posted by swisstony on Stack Overflow See other posts from Stack Overflow or by swisstony
Published on 2010-05-19T13:26:22Z Indexed on 2010/05/19 13:30 UTC
Read the original article Hit count: 213

Filed under:
|
|

In C# what's the best way to remove blank lines i.e., lines that contain only whitespace from a string? I'm happy to use a Regex if that's the best solution.

© Stack Overflow or respective owner

Related posts about c#

Related posts about regex