Re: Validating email address
Re: Validating email address
- Subject: Re: Validating email address
- From: Daniel Jalkut <email@hidden>
- Date: Sat, 03 Dec 2005 00:30:29 -0500
I totally agree with you that a "simplistic" solution is not "correct", but in what universe do people actually use these "edge case" email formats, aside from your demonstrated example case?
I think it largely depends on what the purpose of the validation is. For instance, I think it could be very reasonable for a web site to decide that all submitted email addresses conform to a certain (non-RFC822) format. Does anybody really use these convoluted email formats anymore?
Isn't supporting the most unusual forms of email address sort of akin to asking a telephone database to support numbers like "Garden 2-5394" ? Sure, there are lots of legal email addresses out there that are "quite funky" by our everyday standards of what email addresses look like, but who uses them? And are those people in a position where they can't (or shouldn't) use a more typically "normal" address?
I might be totally naive here, so I'm prepared to be smacked down :)
Daniel On Dec 2, 2005, at 6:52 PM, Randal L. Schwartz wrote: Michael> You can find several RegEx patterns to check email, including some Michael> finesses, which satisfy such pattern as: Michael> [A-Z0-9._%-]++@[A-Z0-9._%-]+\.[A-Z]{2,4}
WRONG WRONG WRONG.
Just like I said... someone would trot out a pattern that doesn't pay attention to RFC822.
Where can I collect my "I told you so" bonus check now?
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden