title: ereg_replace to preg_replace?
body: <p>How can I convert </p>
  
  <pre><code>ereg_replace(".*\.(.*)$","\\1",$imgfile);
  </code></pre>
  
  <p>to</p>
  
  <pre><code>preg_replace... ?
  </code></pre>
  
  <p>?</p>
  
  <p>I'm having trouble with it?</p>