I have a set of URLs, now I want to filter them based on web domains (e.g. Wikipedia URLs). Right now, what I'm doing is a set of iterations, and for each URL I just find the keyword of this web address.
if(ur.contains("wikipedia.org")){ //do something }
is there any other method that is more efficient than my current approach?
user5396187
source share