Steve,

I think this is the pattern you're looking for.

^(?=.*[A-Za-z])(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[\$|@|#|\^|_|\*]).{
8,127}

If you include the following lookahead

(?!.*[^A-Za-z0-9])

Then that basically negates the special characters pattern because it's
saying "none of the characters in the string should be
non-alphanumeric". 

Hope that helps.


Steve Brownlee
http://www.fusioncube.net/


-----Original Message-----
From: Steve LaBadie [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 12, 2007 10:39 AM
To: CF-Talk
Subject: RE: Regex Help

Bobby,

I get an "invalid token | found" error.

To answer your question my match is predicated on one of these
characters (@#$^_*) being present.

^(?=.*[A-Za-z])(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?!.*[^A-Za-z0-9@|#|\$|\
^|_|\*])(?!.*s).{8,127}$


^(?=.*[A-Za-z])(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?!.*[^A-Za-z0-9])(?=.*[
@|#|\$|\^|_|\*])(?!.*s).{8,127}$

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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:269511
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to