string.replace seriously broken with \
Posted
by Blub
on Stack Overflow
See other posts from Stack Overflow
or by Blub
Published on 2010-05-07T10:49:54Z
Indexed on
2010/05/07
11:08 UTC
Read the original article
Hit count: 223
"C://test/test/test.png" -> blub
blub = blub.Replace(@"/", @"\");
result = "C:\\\\test\\test\\test.png"
how does that make sense? It replaces a single / with two \
?
© Stack Overflow or respective owner