去除string的 换行回车符等特殊字符

Regex.Replace(text, @"\s", "")

原文地址:https://www.cnblogs.com/aoldman/p/3016496.html