title: Regex multiple matches on same line
body: <p>I have the following JavaScript Regex</p>
  
  <p>As used in <a href="http://regexpal.com/">http://regexpal.com/</a></p>
  
  <p><code>\[.*(\.jpg|\.png|\.gif|\.bmp|\.jpeg).*\]</code> </p>
  
  <p>As use in jQuery code -</p>
  
  <p><code>post.html().match(/\[.*(\.jpg|\.png|\.gif|\.bmp|\.jpeg).*\]/g);</code></p>
  
  <p>This is the sample data I am working with</p>
  
  <blockquote>
    <ol>
    <li>[cid:image001.jpg@01CD2DC8.704399C0]</li>
    <li>s[cid:image001.png@01CD2DC8.704399C0]&lt;</li>
    <li>image.jpg</li>
    <li>[cid:image002.jpg@01CD2DC8.704399C0]</li>
    <li>[cid:image002.exe@01CD2DC8.704399C0]</li>
    <li>[cid:image002.gif@01CD2DC8.704399C0]</li>
    <li>[[cid:image001.jpg@01CD2DE6.9802A2D0]<BR>And again<BR>[cid:image002.png@01CD2DE6.9802A2D0]]</li>
    <li>test.gif</li>
    </ol>
  </blockquote>
  
  <p>My issue is that on line 7, I would like the two strings enclosed in the [] to be separate, at the moment it is treating the whole line as a match,</p>