日期:2014-05-19  浏览次数:20773 次

我要把字符串里面的 \" 换成 " ,请问语句应该怎样写?谢谢
举个例子,我的字符串原始是这样子的
<?xml   version=\ "1.0\ "   standalone=\ "yes\ "?>

我要变成
<?xml   version= "1.0 "   standalone= "yes "?>

请问语句应该怎样写?谢谢

------解决方案--------------------
see:

string s = " <?xml version=\\\ "1.0\\\ " standalone=\\\ "yes\\\ "?> ";
Console.WriteLine(s);
Console.WriteLine(s.Replace( "\\\ " ", "\ " "));