Possible Duplicate:
How can I convert ereg expressions to preg in PHP?
I have a php contact form that I have used on a few different websites. I am trying to implement the same one on a new site, but I am getting the following message:
Deprecated: Function eregi() is deprecated in /home/content/58/10223058/html/contact-1.php on line 36
Here is line 36 from my code:
if(!eregi($string_exp,$name)) {
$error_message .= 'The Name you entered does not appear to be valid.<br />';
}
I am sure there is an easy fix for this, but I am very new to PHP and do not know how to go about fixing this!
Any help would be greatly appreciated. Thankyou