• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2919
  • Last Modified:

replace backslashes by slashes

Hello,

I want to replace backslashes "\" by slashes "/" in a  string.

Thank you !
0
matthew016
Asked:
matthew016
4 Solutions
 
objectsCommented:
s = s.replaceAll("\\\\", "/");
0
 
ksivananthCommented:
string.replaceAll( "\\\\", "/" ) ;
0
 
CEHJCommented:
More efficient:

s = s.replace('\\', '/');
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
matthew016Author Commented:
okkk thanks !!
0
 
CEHJCommented:
:-)
0
 
objectsCommented:
its not more efficient btw :)
not even the same thing
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now