Answer the question
In order to leave comments, you need to log in
How to select direct link from google url using regular expressions?
Required from links like
https://www.google.com/url?rct=j&sa=t&url=http://t...
Get links like:
tower43.ru/b0013232
Using the service , I wrote a regular expression
String pattern = "(\\S)(https?:[\\S]*)(&ct=ga&cd=)";
Pattern p = Pattern.compile(pattern);
Matcher m = p.matcher(url);
Answer the question
In order to leave comments, you need to log in
Easy weasy.
stackoverflow.com/questions/21545912/url-parsing-i...
stackoverflow.com/questions/13592236/parse-a-uri-s...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question