Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

•Re^2: On Validating Email Addresses

by merlyn (Sage)
on Jan 04, 2005 at 03:04 UTC ( [id://419141]=note: print w/replies, xml ) Need Help??


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... }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://419141]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-24 18:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found