PHP and regular expressions, Why isn't this working?

davrooo

New Member
\[code\]if(strlen($_REQUEST['email']) >= 0 && preg_match('^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$', $_REQUEST['email'])){ $error = true; echo "Please enter a valid Email address";}Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in /var/www/team2648/OPIS/register.php on line 30\[/code\]
 
Back
Top