Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Replace Single Backward Slash in Java String

Topcan5Jan 9 2011 — edited Jan 17 2011
I have a String lsString = "C:\test\test1" from the font end javascript code.
Somehow Java translates it to "C: est est1". How can I get the original absolute path? I tried replaceAll("\","////"), it doesn't work.
Help!!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 6 2011
Added on Jan 9 2011
6 comments
10,906 views