Skip to content
Prev 156910 / 398506 Next

How to convert backslash to slash?

How to use sub, gsub, etc. to replace "\" in a string to "/"?

For example,convert "C:\foo\bar" to "C:/foo/bar".

Thanks,

Shengqiao Li