title: getting error: Warning: preg_match() [function.preg-match]: Unknown modifier ',' in
body: <p>Here is the syntax I am trying to use to replace PHP5.3 problematic "if (ereg".</p>
  
  <p>origianl code:</p>
  
  <pre><code>if (ereg('([0-9.-]{1,}),([0-9.-]{1,})', $location, $regs))
  </code></pre>
  
  <p>new code:</p>
  
  <pre><code>if (preg_match('/[0-9.-]{1,}/,/[0-9.-]{1,}/', $location, $regs))
  </code></pre>
  
  <p>this new code is causing the warning.
  I tried to figure it out using previous posts, here, but I am not quite getting it right.</p>
  
  <p>Thanks.</p>