I have a URL like this: http:\\/\\/www.example.com\\/example in a string object.
http:\\/\\/www.example.com\\/example
Can somebody tell me, how to remove the backslashes? <
Only this works for me -
String url = "http:\/\/imgd2.aeplcdn.com\/310x174\/cw\/cars\/ford\/ford-figo-aspire.jpg"; for(int i = 0; i < url.length(); i++) if(url.charAt(i) == '\\') url = url.substring(0, i) + url.substring(i + 1, url.length());