2014-04-26 32 views
0

我需要从imagepth字符串变量删除\字符:删除转义字符“”从字符串

imagepth = "# Eval(\"Name\",\"Gallary/\"" + imgwords[4] + "\"/Images/{0}\")"; 
+0

我不确定我是否理解。据我所知,imagepth在赋值后不会包含单个反斜杠。 –

+2

反斜杠转义引号,所以这些不会在'imagepth'中结束。你的意思是替换'/'而不是? –

回答

2

您可以使用替换法用一个空字符串

012更换