> -----Original Message-----
> From: Claude Schneegans [mailto:[EMAIL PROTECTED]
> Sent: dinsdag 24 februari 2004 19:12
> To: CF-RegEx
> Subject: Re: How would this be done...
>
> >>Is this too much to ask?
>
> Via regEx, no, but in ONE regEx it could be too much How about
>
> <CFSET PWCorrect = (
>     len(newPW) EQ 8
>     AND REFind ("[A-Z]", newPW)
>     AND REFind ("[a-z]", newPW)
>     AND REFind ("[EMAIL PROTECTED]", newPW)>
> (don't forget to escape special characters)

You don't need to escape special characters in a character class. Only
]/- (and you can avoid escaping - by making it the first character.

>
> Note, if you really mean characters greater then the 128-bit
> ASCII character, then @,#,$,%, etc do not fall in this category.
> If you really mean characters between ! and @, then use [EMAIL PROTECTED]
> If you really mean higher than 128, then use [#chr(128)#-#chr(255)#]

There is a character class [[:punct:]] that may give you what you want.
If what you really mean is non-alphanumerical, you can use [^[:alnum]]

>
> I also assumed that you meant "must include AT LEAST one...".
> If you mean EXACTLY ONE, then it is something else.
> _______________________________________
> Please send any spam to this address:
> [EMAIL PROTECTED] Thanks.
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to