PHP - eregi deprecated in contact form
<p>I have a site with a contact for which has..</p>

<p><code>if (email_is_valid($youremail) &amp;&amp; !eregi("\r",$youremail) &amp;&amp; !eregi("\n",$youremail) &amp;&amp; $yourname != "" &amp;&amp; $yourmessage != "" &amp;&amp; substr(md5($user_answer),5,10) === $answer)</code></p>

<p>The site was upgraded to php 5.3 and now users received a deprecated warning....</p>

<p>I have no idea and have tried to change with pregmatch directly but fail...miserably</p>

<p>Please help...</p>
