>Being the RegEx Ninja, my first thought is to use a regex:
>
>([a-z0-9])\1
>
>will find any instance of a character next to itself, so if you refind() 
>for it across your string, you can find the repeating chars.
>
>--Ben Doom
>
>
>Kenny Kinds wrote:
>>
Thanks. 

I have one more question as, in the string I need to check for sets of 
characters because the password cannot have more that 2 sets of the same 
letters or numbers. ex. (xy, xy).

Is there a RegEx that can accomplish this?

Thanks in advance. 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

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