preg_replace() help
<p>i need to replace combobox like this.
eg:- </p>

<pre><code>&lt;select sistem="" name="answer5" &gt;
&lt;option&gt;math&lt;/option&gt;

&lt;option&gt;science&lt;/option&gt;

&lt;option selected="selected"&gt;engineering&lt;/option&gt;

&lt;option&gt;English&lt;/option&gt;&lt;/select&gt;
</code></pre>

<p>result shuld be(AFTER REPLACED) :- {answer5}</p>

<p>i have tried this but failed:</p>

<pre><code>preg_replace('|&lt;SELECT(.*)name="'.$name.'"(.*)&gt;(.*)&lt;/SELECT&gt;|U', '{'.$name.'}',$string);
</code></pre>
