Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

string webPath = folderPath.Replace("\\", "/");

Tags:

c#

.net

string webPath = folderPath.Replace("\", "/");

Hi, I'm trying to replace the above but struggling. Will I need an apply an escape sequence to /. If so anyone know what it is in c#. Any help/hints much appreciated.

like image 908
user17510 Avatar asked Mar 13 '26 06:03

user17510


1 Answers

string webPath = folderPath.Replace(@"\", "/");
like image 113
shahkalpesh Avatar answered Mar 15 '26 21:03

shahkalpesh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!