> this regex seems to work for me:
>
> ^[_a-z0-9-]+(\.[_a-z0-9-]+)[EMAIL PROTECTED](\.[a-z0-9-]+)*\.(([a-z
> ]{2,3})|(aero|coop|info|museum|name|travel|asia|mobi))$
>
> NOTE: make sure you LCase the var that holds the email
> address first...
>
> Anyone can see anything terribly wrong with this one? I am
> way too far from regex guru to know myself...
I'm no regex guru either, but there are valid characters outside the ranges
listed above, such as single quotes and plus signs.
http://en.wikipedia.org/wiki/E-mail_address#RFC_Specification
> Is an email like [EMAIL PROTECTED] a valid one (4
> parts in the domain part)? 'cos that one fails on the above regex...
Yes, that is a valid address. To the best of my knowledge, there is no
maximum depth for subdomains.
> Also, technically, are [EMAIL PROTECTED] and [EMAIL PROTECTED]
> considered the same address or not? Will any mail server
> allow one to have both [EMAIL PROTECTED] and
> [EMAIL PROTECTED] on the same domain?
According to RFC 2821, the local part of the address is case-sensitive. Most
mail servers I've worked with will treat it as case-insensitive, though.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307590
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4