"randy1200" <ra*******@discussions.microsoft.comwrote in message
news:52**********************************@microsof t.com...
OpenFileDialog gives me the following, which I place in tbDevPath.Text:
x:\\myVob\\mySolution\\mySolution.sln
Obligatory movie reference!
Boy: Do not try to bend the double-backslashes; that's impossible.
Instead, only try to realize the truth.
Neo: What truth?
Boy: There are no double-backslashes.
Neo: There are no double-backslashes?
Boy: Then you will see, it is not the double-backslashes that bend, it is
only yourself.
http://en.wikiquote.org/wiki/The_Matrix
I really need this path to be single-backslashes, not double-backslashes,
so
I tried the following:
string updatedDevPath = Regex.Replace(tbDevPath.Text, @"^\\\\$", "\\")
This still leaves me with double-backslashes. Any suggestions?
Try looking at tbDevPath.ToCharArray() in the debugger instead of the string
itself.
>
Thanks,
Randy