C# 字符串去除制表符回车符换行符
生活随笔
收集整理的這篇文章主要介紹了
C# 字符串去除制表符回车符换行符
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
? ? ? ? ? ? #region 字符串去除制表符回車符換行符
? ? ? ? ? ? public string strChar(string Str)
? ? ? ? ? ? {
? ? ? ? ? ? ? ? string ReStr = Str;
? ? ? ? ? ? ? ? if (!(Str == "" || Str == null))
? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? if (Str.Length > 0) ;
? ? ? ? ? ? ? ? ? ? ReStr = Str.Replace("\n", "").Replace("\t", "").Replace("\r", "");
? ? ? ? ? ? ? ? }
? ? ? ? ? ? ? ? return ReStr;
? ? ? ? ? ? }
? ? ? ? ? ? #endregion
總結(jié)
以上是生活随笔為你收集整理的C# 字符串去除制表符回车符换行符的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 联想服务器改win7系统教程视频教程,联
- 下一篇: 配置CKFinder(Java版)