Niiiiiiiice :D Yeah, I know what you mean. I have gone back to this like three times and couldn't figure it out. I have never used chained look aheads. That's a nice little trick (or rather usage of the language). Freakin' sweet.
...................... Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ -----Original Message----- From: Steve Brownlee [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 28, 2006 5:20 PM To: CF-Talk Subject: RE: RegEx help 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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:261934 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4