 <p>yeah why dont use <strong>filter_var</strong>, </p> <pre><code>filter_var ($isEmail, FILTER_VALIDATE_EMAIL); </code></pre> <p>And eregi (Posix Regex) has been deprecated as PHP 5.3.0. <a href="http://www.php.net/manual/en/function.eregi.php" rel="nofollow">php-manual</a></p>