0

how to resolve this issue - Warning: preg_match(): No ending delimiter '^' found in C:\xampp\htdocs\phpMySQLSourceCode\26\data_valid_fns.php on line 17

my code is

function valid_email($address) { // check an email address is possibly valid if (preg_match('^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+[a-zA-Z]+$', $address)) return true; else return false; }

thank you

  • Does this answer your question? [PHP regular expressions: No ending delimiter '^' found in](https://stackoverflow.com/questions/4634993/php-regular-expressions-no-ending-delimiter-found-in) – Toto Sep 25 '21 at 12:28
  • [Valid & invalid email](https://en.wikipedia.org/wiki/Email_address#Examples) [List of TLDs](https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains) [Regex for email address (RFC 822)](http://www.ex-parrot.com/pdw/Mail-RFC822-Address.html) – Toto Sep 25 '21 at 12:47

0 Answers0