checkEmail is a very small, very fast PHP function that verifies the format of an e-mail address and returns true for a valid address. Some similar scripts are dozens of lines long and give bad ...
checkEmail is a very small, very fast PHP function that verifies the format of an e-mail address and returns true for a valid address. Some similar scripts are dozens of lines long and give bad results. The code for this script is 7 lines (and it could be shorter) and has so far never failed to match even the most complex e-mail addresses. I'm putting this painfully simple RegEx function online because it shocked me that no one else could write one that worked.
Version 1.0 Platform Windows ,FreeBSD ,Mac OSX ,Sun ,Linux