Hi PPL,
I wrote a regex to verify an email address
Code:if(!preg_match("^[a-z0-9]+@{1}[a-z0-9-]+\.{1}[a-z]{2,4}\.?[a-z]{0,2}$",$myemail)) echo "Invalid Email";
Please take a look and tell me if this will work for all type of emails, For example:
abc@domain.co.uk
OR
abc@domain.info
OR
abc@domain.com
and other emails also...
Thanx



Reply With Quote

Bookmarks