Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

replace backslashes by slashes

Posted on 2007-12-07
7
Medium Priority
?
2,909 Views
Last Modified: 2013-12-29
Hello,

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

Thank you !
0
Comment
Question by:matthew016
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 92

Assisted Solution

by:objects
objects earned 400 total points
ID: 20426628
s = s.replaceAll("\\\\", "/");
0
 
LVL 26

Assisted Solution

by:ksivananth
ksivananth earned 200 total points
ID: 20426629
string.replaceAll( "\\\\", "/" ) ;
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 800 total points
ID: 20426651
More efficient:

s = s.replace('\\', '/');
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 9

Assisted Solution

by:ysnky
ysnky earned 600 total points
ID: 20426703
0
 
LVL 9

Author Comment

by:matthew016
ID: 20426980
okkk thanks !!
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 20427041
:-)
0
 
LVL 92

Expert Comment

by:objects
ID: 20427627
its not more efficient btw :)
not even the same thing
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This video teaches viewers about errors in exception handling.
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question