如何把\abc\xxx.jpg字符串中的 "\abc\ "替换掉?(replace( '\abc\ ', " ")不行,不知怎么处理斜杠啊?
------解决方案--------------------------------------------------------
string oldStr= "\abc\xxx.jpg "
string newStr=oldStr.Replace(@ "\abc\ ", " ");
------解决方案--------------------------------------------------------
replace( "\\abc\\ ", " ")
or
replace(@ "\abc\ ", " ")
------解决方案--------------------------------------------------------
要转义字符才行的。加个@就可以了。
------解决方案--------------------------------------------------------
replace( "\\abc\\ ", " ")