'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.
..:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -----Original Message----- From: Patrick McElhaney [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 28, 2006 4:09 PM To: CF-Talk Subject: Re: RegEx help On 11/28/06, Steve Brownlee <[EMAIL PROTECTED]> wrote: > What engine are you testing with? Patrick's pattern validates against > all numeric, all alpha, and mixed against Perl 5, JDK 1.4 and JDK 1.5 > implmenetations. He's saying "all numeric" isn't valid; there must be at least one letter. If you want to require at least one number *and at least one letter* this should work. /^(?=.*\d)(?=.*[A-Za-z]).{6,12}$/ Patrick -- Patrick McElhaney 704.560.9117 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:261925 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4