People … quit messing about with ereg_replace / preg_replace / eregi or other things you know nothing of… use the php filter_var. DO IT.
Commonly found bullshit on the interwebs :

eregi is deprecated and silly, the above WILL miss some of the weirder or longer email addresses like school/company addresses. make your life simpler :

while not the most perfect thing, its easier to remember AND add to your code.

More info regarding this : PHP manual Filter Var

Some examples :

Leave a comment

Leave a Reply or the kitten gets it!