C#去掉字符串中的特殊字符
摘要:方案一:stringexcept_chars=":‘ ! @ # % … & * ( ^ & ¥ , 。 , .)$";stringsrc="就是包含:这些‘字符包含空格)都要$去掉么?";stringresult=Regex.Replace(src,"["+Regex.Escape(except_...
阅读全文
posted @ 2015-03-27 16:50
posted @ 2015-03-27 16:50