Created
July 12, 2011 16:26
-
-
Save mtrl/1078350 to your computer and use it in GitHub Desktop.
preg_match loose email match
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Matches [email protected] | |
| preg_match('/^[^@]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$/', $_POST['email']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment