ross96 Level: Protégé
 Registered: 01-09-2005 Posts: 8
|
Regular Expression for validating email addresses
I'm using the following regular expression:
'/^[^@\s]+@([-a-z0-9]+\.)[a-z]{2,}$/i'
to validate email addresses in a webform. It works really well with addresses such as "name@example.com", but it wont work with domain extensions with more than one "dot" at the end, such as, " name@example.co.uk".
Can anyone let me know a regular expression that will allow more universal email addresses through the net?
Thanks very much in advance, I really appreciate your help.
|