Yes...I do mean that...I was taking what was written irectly off of my
functional spec. I have told our Quality guy that he is clueless for
writing that (and I guess I am too for not correcting it!).
I am extremely new to reg-ex. Let me see if I understand what this is
doing...
REFind ("[A-Z]", newPW) This is looking for any capital letter...
REFind ("[a-z]", newPW) This is looking for any lower case letter...
REFind ("[EMAIL PROTECTED]", newPW) Does the \ at the begining escape everything after
it or is it just escaping the !? Also,
Does this work for all of the special characters on the keyboard? Things
like a period, or comma, or brackets?
I really appreciate you help on this.
Brian
-----Original Message-----
From: Claude Schneegans [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 24, 2004 12:12 PM
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)
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)#]
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]
