Coverting an ereg_replace to preg_replace
<p>I have to convert an <code>ereg_replace</code> to <code>preg_replace</code></p>

<p>The ereg_replace code is:-</p>

<pre><code>ereg_replace( '\$([0-9])', '&amp;#36;\1', $value );
</code></pre>

<p>As preg is denoted by a start and end backslash I assume the conversion is:-</p>

<pre><code>preg_replace( '\\$([0-9])\', '&amp;#36;\1', $value );
</code></pre>

<p>As I don't have a good knowledge of regex I'm not sure if the above is the correct method to use?</p>
