AFAIK, an IP address is a valid host in an email address.  This RE does not
handle that.


I also thought that the mailbox name could only contain alphanumerics,
hyphens or underscores.   But after reading this post and Googling the topic
I've found someone who claims that the following are all valid:


ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789
!#$%&'*+-./=?^_`{|}~

I've looked over RFC 822 but I frankly can't make heads or tails of it.  Can
anyone point to an official source that is clear and simple to understand?
I want my validation routines to be accurate.


Thanks,
Chris

-----Original Message-----
From: Ewok [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 29, 2004 8:37 AM
To: CF-Talk
Subject: RE: Verify an email address from a query

That's news to me. Last I heard it was still 0-9 a-z A-Z . @ _ -

But if it is a valid character....

REFindNocase("^[\+_a-z0-9-]+(\.[\+_a-z0-9-]+)[EMAIL PROTECTED](\.[a-z0-9-]+)*\.((
[a-z]{2,3})|(aero|coop|info|museum|name))$", addr)

Or does it have to start with a letter or number first?

REFindNocase("^[a-z0-9]+[_a-z0-9-+]+(\.[+_a-z0-9-]+)[EMAIL PROTECTED](\.[a-z0-9-]
+)*\.(([a-z]{2,3})|(aero|coop|info|museum|name))$", addr)

Do you have some reliable resource you're getting the validity of the
characters from? All I am able to find are the characters I mentioned above.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to