Sorry, can't get this outta my head now.  Too interesting a challenge.
I believe this one will do it.

        ^(?=.*[A-Za-z])(?=.*[0-9])(?!.*[^A-Za-z0-9])(?!.*\s).{6,12}$

LOL, as was said originally, easier to break it up into two expressions
than worry about creating a monstrous pattern (as shown above). 

Steve Brownlee            
http://www.fusioncube.net

-----Original Message-----
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 28, 2006 4:27 PM
To: CF-Talk
Subject: RE: RegEx help

'11111a111111' fails
'aaaaa1aaaaaa' fails
'11111a' fails
'aaaaa1' fails

Actually... I guess everything I feed that one fails. Just go with Bens
original solution. It made it MUCH easier.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261932
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