replace - Replacing unique character with others in android studio -


i want replace character in string:

"google.com\123" 

i want replace "\" "/" link correct.

string google = "google.com\123"; google = google.replace("\", "/"); 

but doesn't work since "\" character unique.

use code

string google = "google.com\123"; google = google.replace("\\", "/"); 

this work


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -