title: Stripping URLs from image data using NSRegularExpression
body: <p>I want to strip image URLs from lots of differently formed HTML. </p>
  
  <p>I have this already:</p>
  
  <pre><code>NSRegularExpression *regex = [[NSRegularExpression alloc] 
  initWithPattern:@"(?&lt;=img src=\").*?(?=\")" 
  options:NSRegularExpressionCaseInsensitive error:nil];
  </code></pre>
  
  <p>this works fine if the HTML is formed like <code>&lt;img src="someurl.jpg" alt="" .../&gt;</code> , but this isn't always the case, sometimes the there are other attributes before <code>src</code> which is doesn't pick up. </p>