title: Retrieve image url from string
body: <p>I'm parsing an xml file and I can NSLog the parsing, but my problem is that I need to get the image url`s from this "string": </p>
  
  <pre><code>&lt;p&gt;
   &lt;a href="http://www.bubblesurprise.com/WPRESS_APP/wp-content/uploads/2012/02/ex43.jpg"&gt;&lt;img class="alignnone size-thumbnail wp-image-81" title="ex4" src="http://www.bubblesurprise.com/WPRESS_APP/wp-content/uploads/2012/02/ex43-150x150.jpg" alt="" width="150" height="150" /&gt;&lt;/a&gt;
   &lt;a href="http://www.bubblesurprise.com/WPRESS_APP/wp-content/uploads/2012/02/ex32.jpg"&gt;&lt;img class="alignnone size-thumbnail wp-image-80" title="ex3" src="http://www.bubblesurprise.com/WPRESS_APP/wp-content/uploads/2012/02/ex32-150x150.jpg" alt="" width="150" height="150" /&gt;&lt;/a&gt;
   &lt;a href="http://www.bubblesurprise.com/WPRESS_APP/wp-content/uploads/2012/02/ex23.jpg"&gt;&lt;img class="alignnone size-thumbnail wp-image-79" title="ex2" src="http://www.bubblesurprise.com/WPRESS_APP/wp-content/uploads/2012/02/ex23-150x150.jpg" alt="" width="150" height="150" /&gt;&lt;/a&gt;
   &lt;a href="http://www.bubblesurprise.com/WPRESS_APP/wp-content/uploads/2012/02/ex12.jpg"&gt;&lt;img class="alignnone size-thumbnail wp-image-71" title="ex1" src="http://www.bubblesurprise.com/WPRESS_APP/wp-content/uploads/2012/02/ex12-150x150.jpg" alt="" width="150" height="150" /&gt;&lt;/a&gt;
   &lt;/p&gt;
  </code></pre>
  
  <p>Sorry for the plain code :)</p>
  
  <p>what im using to extract the url´s is this code but its not working:</p>
  
  <pre><code>   NSRange start = [item.imageGallery       rangeOfString:@"http://www.bubblesurprise.com/WPRESS_APP/wp-content/uploads/"];
      NSRange end = [item.imageGallery rangeOfString:@"\" "];
  
      int rangeLength = (int)(end.location - start.location);
  
      NSString *hrefString = [[NSString alloc] initWithString:[item.imageGallery substringWithRange:NSMakeRange(start.location, rangeLength)]];
      NSLog(@"image url = %@",hrefString);
  </code></pre>