Possible Duplicate:
Using a regular expression to validate an email address
I have a regular expression for validating email addresses. It works pretty well, but it doesn't pick up if I've added any characters at the end. For example, if I try.... "eee" it will flag it as invalid, If I try "[email protected]" that passes, but if I try "[email protected]" it also passes. Is there anything to stop these invalid characters being picked up at the end?
Here is my regex:
^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$
Thanks