how replace <tag value="value"> to $tag['$thepreviousvalue'] with regexp
<p>Hello there i've finally made a good <em>perfect</em> language system and now am trying to fix my templates system to work with this new language system =P
i want to replace  to $tag['$thepreviousvalue'] so i made the following code</p>

<pre><code>preg_replace("/&lt;LANGUAGE value=\"^[a-zA-Z0-9_]{1,}$\"&gt;/si", ''. $langvals['$1'] .'', $data);
</code></pre>

<p>but it doesn't work and i bet that my weak knowledge in regexp is the problem.</p>
