title: Warning: preg_match() [function.preg-match]: No ending delimiter '^
body: <p>when i run this in php 5.3:</p>
  
  <pre><code>public function isValidEmail($email)
  {
      //$pattern = "^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$";   
  return (preg_match($pattern, $email)) ? 1 : 0;
  }
  </code></pre>
  
  <p>I get this message:</p>
  
  <pre><code> Warning: preg_match() [function.preg-match]: No ending delimiter '^' in......
  </code></pre>
  
  <p>any idea what it should be?  </p>