SyntaxFix
Write A Post
Hire A Developer
Questions
You need to escape the backslash \:
\
println yourString.replace("\\", "/")