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

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -