您的位置:首页 > 编程语言 > C#

C# Tips: How to remove white-space characters inside a string?

2011-09-22 10:58 489 查看
The answer is very simple, just a line of code:

string outputString = Regex.Replace(inputString, @"\s", string.Empty);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  c# string