Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: input - E-mail address - how to check string ?

by MidLifeXis (Monsignor)
on Feb 25, 2015 at 14:37 UTC ( [id://1117837]=note: print w/replies, xml ) Need Help??


in reply to Re: input - E-mail address - how to check string ?
in thread input - E-mail address - how to check string ?

see NaN's response above, and also consider a common address structure of user@department.company.tld. This and other more complex structures are quite common.

As is stated much earlier in this thread (and learned through experience as a bitnet/usenet/campus email routing gateway admin), email addresses are not trivial. The localpart of addresses is oft horribly mangled or restricted ('-' in the $localpart converted to '_', case mangled from what is provided, etc). I treat the mangelings reasonably on my side, but the fact that they get mangled in the first place is irritating, and gives me pause when considering if the organization's IT department is up to the challenge. Since I seed addresses given to companies to identify spam leakage, I also eschew companies that restrict or mangle '-' and '+' when possible.

--MidLifeXis

Replies are listed 'Best First'.
Re^3: input - E-mail address - how to check string ?
by kroach (Pilgrim) on Feb 25, 2015 at 21:39 UTC
    Yes, I have indeed overlooked that, thank you for pointing that out. The solution hippo came up with seems to be much better.

Log In?
Username:
Password:

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

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

    No recent polls found