How can I prune double slashes from a string?
<appSettings>
<add key="pdfroot" value="p:\E-Switch Secure\PDF_dwgs \"/>
</appSettings>
string path = ConfigurationMa nager.AppSettin gs["pdfroot"];
path = path.Replace("\ \\\", "\\"); // Doesn't work
path = path.Replace(@" \\", @"\"); // Doesn't work
--
Arne Garvander
(I program VB.Net for fun and C# to get paid.)
<appSettings>
<add key="pdfroot" value="p:\E-Switch Secure\PDF_dwgs \"/>
</appSettings>
string path = ConfigurationMa nager.AppSettin gs["pdfroot"];
path = path.Replace("\ \\\", "\\"); // Doesn't work
path = path.Replace(@" \\", @"\"); // Doesn't work
--
Arne Garvander
(I program VB.Net for fun and C# to get paid.)
Comment