Replacing Placeholder text containing a variable
<p>Hi I have placeholder text in my content from the CMS like this:</p>

<pre><code>$content = "blah blah blah.. yadda yadda, listen to this:
{mediafile file=audiofile7.mp3}
and whilst your here , check this: {mediafile file=audiofile24.mp3}"
</code></pre>

<p>and i need to replace the placeholders with some html to display the swf object to play the mp3.
<br>How do i do a replace that gets the filename from my placeholder.</p>

<p>I think the regx pattern is <code>{mediafile file=[A-Za-z0-9_]}</code>  but then how do i apply that to the whole variable containing the markers?</p>

<p>Thanks very much to anyone that can help,</p>

<p>Will </p>
