title: Regular expression to find and replace the content of HTML Comment Tags
body: <p>I have a CMS that uses a syntax based on HTML comments to let the user insert flash video players, slideshows, and other 'hard' code that the user could not easily write. </p>
  
  <p>The syntax for one FLV movies looks like this:
  <code>&lt;!--PLAYER=filename.flv--&gt;</code></p>
  
  <p>I use this code:</p>
  
  <p><code>$find_players = preg_match("/&lt;!--PLAYER\=(.*)--&gt;/si", $html_content, $match);</code></p>
  
  <p>This works great if there is only one player, $match[1] contains the filename (which is all I need)</p>
  
  <p>My knowledge of regex is vanishing, so I'm not able to adjust this to grab more than one match. </p>
  
  <p>If there are more on the page, it breaks totally, because it matches too greedily (from the first <code>&lt;!--PLAYER</code> to the last <code>--&gt;</code></p>