This question already has answers here:
Closed 2 years ago.
What is the best way to replace all occurrences of "\" with "/" in a string in c#?
I've tried the following options but neither work.
- variable.Replace("\", "/");
- variable.Replace(@"\", @"/");
Thanks.