/ Published in: PHP
URL: tricksbycinger.blogspot.com
Full email validation with regex.
Expand |
Embed | Plain Text
$regex = "([a-z0-9_.-]+)". # name "@". # at "([a-z0-9.-]+){2,255}". # domain & possibly subdomains ".". # period "([a-z]+){2,10}"; # domain extension
Comments
Subscribe to comments
You need to login to post a comment.

or you could use the built-in php functions : http://php.net/manual/en/filter.examples.validation.php vardump(filtervar('[email protected]', FILTERVALIDATEEMAIL));
Ah, I totally forgot that exists... Thanks for your comment! I guess I only really need something like this in Javascript form checking.