请教高手,如何替换字符串中的'\'字符!
如题,用replace( "\ ", " ")语法上通不过,请教高手如何解决?
先谢了!
------解决方案--------------------replace( "\ ", " ")
---------------------------
replace( "\\ ", " ")
或
replace(@ "\ ", " ")
------解决方案--------------------对replace( "\\ ", " ")
或
replace(@ "\ ", " ")
\符号在C#里是转义符号的意思
------解决方案--------------------str = str.Replace( "\\ ", " ")