in reply to Re: On Validating Email Addresses
in thread On Validating Email Addresses

the string contains an @ and at least one dot after that
Even that's not quite right (see how easy this is to get wrong!).

One of the country-code registrars (I forget which now) has addresses at the top-level domain! Like "foo@to" for the ".to" registrar.

So please, don't look for a dot. Stick with the Email::Valid-style validators.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re^3: On Validating Email Addresses
by Thilosophy (Curate) on Jan 04, 2005 at 03:54 UTC
    One of the country-code registrars (I forget which now) has addresses at the top-level domain! Like "foo@to" for the ".to" registrar.

    Wow. I am shocked ;-) Have to rewrite some code now...

    if (/\@/) { # email looks valid... }