There is an encoded URL. After decoding
String decodedURL = URLDecoder.decode(encodedLink, "UTF-8"); String delims = "[u, &]"; String[] splittedURL = decodedURL.split(delims); String resultURL = splittedURL[1].substring(1); I get the following URL:
http://example.com?I=vNjWAwAAAABfva85AgAAAABR%2Fv%2F%2F%2FwD%2F%2F%2F%2F%2FBGNhdnMA%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8%3D But in this part:
%2Fv%2F%2F%2FwD%2F%2F%2F%2F%2FBGNhdnMA%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8%3D I need the "F" and "D" letters to be in Lowercase: (F -> f, D -> d). Is it possible to do this by decoding without a split of the url, followed by replacing capital letters with lowercase letters by:
.toLowerCase(); ?