[.net] How to remove whitespace characters when loading text file into a textBox?
I am developing a text comparer application. I need to remove whitespaces character. How to do that?
I use Visual C++ 2005 Express Edition and .Net 2.0.
Thank you very much.
Something like this:
string newString = Regex.Replace(strIn, "[\s]+", "");
You need to read about Regular Expressions in .NET.
string newString = Regex.Replace(strIn, "[\s]+", "");
You need to read about Regular Expressions in .NET.
Come on chrisliando, stop asking so many trivial questions like this and learn to use google and the msdn.
Google search on how to remove whitespace
Google search on how to remove whitespace
Quote:Original post by gharen2
Come on chrisliando, stop asking so many trivial questions like this and learn to use google and the msdn.
Google search on how to remove whitespace
Agreed!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement