Friday, January 18, 2013

What is the best regular expression for an email address?

^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$

??

http://fightingforalostcause.net/misc/2006/compare-email-regex.php

No comments:

Post a Comment