I am checking email address using php with preg_match function. But I keep getting the following error
preg_match(): No ending delimiter '^' found
here is my template for preg_match
$pattern = "^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[az]{2,3})$";
How to fix it?
source share