Forgot your password?
typodupeerror

Comment Real world email address validation (Score 1) 516

After a whole bunch of research I ended up with this for email validation:

/^[\w!#$%&\'*+\/=?^`{|}~.-]+@(?:[a-z\d][a-z\d-]*(?:\.[a-z\d][a-z\d-]*)?)+\.(?:[a-z][a-z\d-]+)$/iD

Note: the modifiers are designed to work with PHP.

Source: http://www.hm2k.com/posts/what-is-a-valid-email-address

Slashdot Top Deals

We are each entitled to our own opinion, but no one is entitled to his own facts. -- Patrick Moynihan

Working...