title: How to extract image url from a string?
body: <p>I am trying to extract image url from inside of a string. I am using Pattern and Matcher. I am using a regular expression to match the same. Whenever I am trying to debug the code, both, matcher.matches() and matcher.find() result into false. 
  I am attaching the image url and regular expression as well as my code. </p>
  
  <pre><code>Pattern pattern_name;
  Matcher matcher_name;
  
  String regex = "(http(s?):/)(/[^/]+)+\" + \"\\.(?:jpg|gif|png)";
  String url = "http://www.medivision360.com/pharma/pages/articleImg/thumbnail/thumb3756d839adc5da3.jpg";
  
  pattern_name = Pattern.compile(regex);
  matcher_name = pattern_name.matcher(url);
  
  matcher_name.matches();
  matcher_name.find();
  </code></pre>