With the following code
$regex = "^[_+a-z0-9-]+(\.[_+a-z0-9-]+)*"
    ."@[a-z0-9-]+(\.[a-z0-9-]{1,})*"
    ."\.([a-z]{2,}){1}$";
    if(!preg_match($regex,$subemail)){
      $form->setError($field, "* Email invalid");
    }
    $subemail = stripslashes($subemail);
}
I am receiving the following error
Warning: preg_match() [function.preg-match]: No ending delimiter '^' found 
Any help would be greatly appreciated.
 
     
     
    