php preg_match with email validation issue
<p>I am validating email address using php with <code>preg_match</code> function. But I keep getting following error</p>

<pre><code>preg_match(): No ending delimiter '^' found
</code></pre>

<p>here is my pattern for preg_match</p>

<pre><code>$pattern = "^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$";
</code></pre>

<p>How to fix this?</p>
