title: How to match a word(String) in URL
body: <p>This website contains different Url, But i want my application should vist urls only which contains specific keyword like "drugs" like
  if urls are</p>
  
  <p><a href="http://website.com/countryname/drug/info/A" rel="nofollow">http://website.com/countryname/drug/info/A</a></p>
  
  <p><a href="http://website.com/countryname/Browse/Alphabet/D?cat=company" rel="nofollow">http://website.com/countryname/Browse/Alphabet/D?cat=company</a></p>
  
  <p>it should visit first URL.so how to match a specific keyword drug in url.I know it can be done using regexp also,but have but i am new to it
  I am using Java here</p>