How do I replace multiple spaces with a single space in C#?

Posted by Pokus on Stack Overflow See other posts from Stack Overflow or by Pokus
Published on 2008-10-15T22:10:31Z Indexed on 2010/05/20 22:10 UTC
Read the original article Hit count: 116

Filed under:
|
|

How can I replace multiple spaces in a string with only one space in C#?

Example "1 2 3  4    5" would be : "1 2 3 4 5"?

© Stack Overflow or respective owner

Related posts about c#

Related posts about string-manipulation