C# Tips: How to remove white-space characters inside a string?
来源:互联网 发布:古代皇帝 知乎 编辑:程序博客网 时间:2024/05/17 11:55
The answer is very simple, just a line of code:
string outputString = Regex.Replace(inputString, @"\s", string.Empty);
- C# Tips: How to remove white-space characters inside a string?
- How to remove space or newline characters from a string?
- How to remove the duplicated value in a String array
- How do you remove the duplicate characters in a given string without using any additional buffer.
- How to remove a replica.
- char * strtrim(char* s ) to remove any space character(such as '\t' , ' ' ...) in a string
- How to remove all characters between two brackets?
- grep: How to find a word inside a directory
- Remove white space using Regular Expressions
- How JavaScript works: inside the V8 engine + 5 tips on how to write optimized code
- How To Mark Or Get The Highlighted String Inside UIWebView
- How to remove a ClearCase view
- How to remove background of a picture?
- remove the duplicate(重复) characters from a string
- 【3】Remove the duplicate characters in a string
- [CrackCode] 1.3 Remove the duplicate characters in a string
- Shell script - How can I trim white space from a variable in awk?
- How to convert a String to DateTime
- 下定决心2011-9-22
- Android 应用制定主题,QQ皮肤APK原理
- iphone 网络编程总结
- 好用的用图片做滚动条的JS
- 在Ubuntu 上安装 离线JDK的方法
- C# Tips: How to remove white-space characters inside a string?
- Task和Activity相关
- 学习
- 修复新建菜单中的“新建文本文档”选项
- SYNCookie原理及在Linux内核中的实现
- 线程池ThreadPoolExecutor使用简介
- iphone开发常用代码
- winsock2 bind函数的功能
- 误删除数据恢复(flashback)