Created
August 8, 2015 15:02
-
-
Save Marchuck/5770354b02b13f4fec82 to your computer and use it in GitHub Desktop.
Get query value used with observables response.getUrl() extracter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String getQuery(String url, String field){ | |
String[] divider = url.split(field+"="); | |
String[] spliter = divider[1].split("&"); | |
return spliter[0]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment