Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Mail::RFC822::Address: regexp-based address validation (ex-parrot.com)
1 point by metafnord on April 16, 2015 | hide | past | favorite | 2 comments


    Anyone who attempts to generate random numbers
    by deterministic means is, of course, living in
    a state of sin.

        -- John von Neumann
Modified to:

    Anyone who attempts to validate email addresses
    by a regular expression is, of course, living in
    a state of sin.

        -- Any sensible person


How many '@' characters are possible in a valid address?

I don't care enough about offline email validation to figure it out carefully, but I have the idea it is one.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: