Skip to content

Instantly share code, notes, and snippets.

@xwmx
Created October 2, 2008 22:33
Show Gist options
  • Save xwmx/14464 to your computer and use it in GitHub Desktop.
Save xwmx/14464 to your computer and use it in GitHub Desktop.
# http://fightingforalostcause.net/misc/2006/compare-email-regex.php
# email validation
/^[-_a-z0-9\'+*$^&%=~!?{}]++(?:\.[-_a-z0-9\'+*$^&%=~!?{}]+)*+@(?:(?![-.])[-a-z0-9.]+(?<![-.])\.[a-z]{2,6}|\d{1,3}(?:\.\d{1,3}){3})(?::\d++)?$/iD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment