Jump to content

email validation


AV1611

Recommended Posts

if (!preg_match('/^[-_a-z0-9\'+*$^&%=~!?{}]++(?:\.[-_a-z0-9\'+*$^&%=~!?{}]+)*+@(??![-.])[-a-z0-9.]+(?<![-.])\.[a-z]{2,6}|\d{1,3}(?:\.\d{1,3}){3})(?::\d++)?$/iD', $email))

 

That should do the trick.  Also, there's an ongoing topic already:  http://www.phpfreaks.com/forums/index.php/topic,192839.0.html

 

Link to comment
https://forums.phpfreaks.com/topic/101649-email-validation/#findComment-520068
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.