The pipe delimited list of domains is a list of things to match that wont be
covered by the 2,3 just before it.

This is what you have now:
aero|coop|info|museum|edu|name

edu does  not need to be in there since it is covered by the 2,3 If you want
others that are longer than 3 characters either up the 2,3 to 2,X or add the
TLD to that list (I'd add to the list)

aero|coop|info|name|museum|travel|mobi|jobs|arpa

If you changed 2,3 to 2,4 then the piped list would only be 
museum|travel

So...

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

Or

^[_a-z0-9-]+(\.[_a-z0-9-]+)[EMAIL PROTECTED](\.[a-z0-9-]+)*\.(([a-z]
{2,4})|(museum|travel))$

There's no need to add things like esu.edu because edu is still the TLD and
that regex will validate [EMAIL PROTECTED] just fine

The 2,3 and piped list only matches what comes AFTER the last dot.


Here is the iana list of TLDs
http://data.iana.org/TLD/tlds-alpha-by-domain.txt


cheers

-----Original Message-----
From: Steve LaBadie [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 22, 2007 12:22 PM
To: CF-Talk
Subject: RE: validate reg_express

Eric,

What would I have to do if I wanted to check for

esu.edu or po-box.esu.edu


Steve LaBadie, Web Manager
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
[EMAIL PROTECTED]
http://www.esu.edu

-----Original Message-----
From: Eric Haskins [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 22, 2007 12:04 PM
To: CF-Talk
Subject: Re: validate reg_express

If you are looking to lock to esu.edu  try this

([a-zA-Z0-9_\-\.]+)@((esu+\.)+)(edu)



-- 
~Eric






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267170
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to