title: What to change from ereg_replace to preg_replace?
body: <p>I've just upgraded to php 5.4 and I've come across a common error of needing to upgrade my ereg_replace to preg_replace, but I'm a tad confused.</p>
  
  <p>Could someone please help me change the following ereg_replace</p>
  
  <pre><code>ereg_replace("&amp;page=[0-9]+","",$_SERVER['QUERY_STRING']);
  </code></pre>
  
  <p>to a preg_replace?</p>