title: RegEx for extracting HTML Image properties
body: <p>I need a RegEx pattern for extracting all the properties of an image tag.</p>
  
  <p>As we all know, there are lots of malformed HTML out there, so the pattern has to cover those possibilities.</p>
  
  <p>I was looking at this solution <a href="https://stackoverflow.com/questions/138313/how-to-extract-img-src-title-and-alt-from-html-using-php" title="How to Extract img src title and alt">https://stackoverflow.com/questions/138313/how-to-extract-img-src-title-and-alt-from-html-using-php</a> but it didn't quite get it all:</p>
  
  <p>I come up something like:</p>
  
  <pre><code>(alt|title|src|height|width)\s*=\s*["'][\W\w]+?["']
  </code></pre>
  
  <p>Is there any possibilities I'll be missing or a more efficient simple pattern?</p>
  
  <p>EDIT:
  <br>Sorry, I will be more specific, I'm doing this using .NET so it's on the server side.
  <br>I've already a list of img tags, now I just need to parse the properties.</p>