日期:2014-05-20  浏览次数:20859 次

请教高手,如何替换字符串中的'\'字符!
如题,用replace( "\ ", " ")语法上通不过,请教高手如何解决?
先谢了!

------解决方案--------------------
replace( "\ ", " ")
---------------------------
replace( "\\ ", " ")

replace(@ "\ ", " ")
------解决方案--------------------
对replace( "\\ ", " ")

replace(@ "\ ", " ")

\符号在C#里是转义符号的意思
------解决方案--------------------
str = str.Replace( "\\ ", " ")