title: Function eregi_replace() is deprecated
body: <p>I am getting this error message appear when trying to support to a payment gateway:</p>
  
  <pre><code>Message: Function eregi_replace() is deprecated
  Message: Function eregi_replace() is deprecated
  </code></pre>
  
  <p>This is the code its relating to in the payment gateway</p>
  
  <pre><code>        $response = eregi_replace ( "[[:space:]]+", " ", $response );
          $response = eregi_replace ( "[\n\r]", "", $response );
  </code></pre>
  
  <p>Any help in solving this error would be great!</p>