title: change ereg to preg_match oscommerce
body: <p>Hi all I have a question with a obsolete/deprecated function.</p>
  
  <p>I need to change <code>ereg</code> to <code>preg_match</code></p>
  
  <p>the code with the function is this: <a href="http://pastebin.com/jMBkJSEr" rel="nofollow">http://pastebin.com/jMBkJSEr</a></p>
  
  <p>I tired to change <code>ereg</code> to <code>preg_match</code> but it doesn't work by just changing the name of the function.</p>