Renzo,
Thanks for the suggestions. I tried both and neither would validate
successfully. I tried hhhhhh4 and it failed althought it is a valid
answer. I have been trying to find a combination that works. Too bad
there aren't simple "AND" and "OR" operations I could use.
I will keep trying.
Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell: (303 263-3044
>>> [EMAIL PROTECTED] 07/29/01 03:16AM >>>
Hi Scott,
What about this little gem? Not sure if it works, but it looks sound:
^(.*\w.*\d.*|.*\d.*\w.*){6,8}$
for more control of valid characters you could use [...]
charactersets:
^(.*[a-zA-Z].*[0-9].*|.*[0-9].*[a-zA-Z].*){6,8}$
Let me know if it works.
Cheers,
Renzo
-----Original Message-----
From: Scott Ryan [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 27 juli 2001 19:57
To: <
Subject: Validation REGEX for input
I don't know if this is the appropriate forum for this but I will ask
anyway. I am trying to use the validation framework to validate an
input value. I can't seem to come up with a REGEX mask that satisfies
the criteria.
The input has the following criteria
1) 6-8 characters in length
2) At least one letter
3) At least one digit
I can't seem to get all of them to fire at once. Any help would be
appreciated.
The validation framework has been extremely valuable and it has saved
a
lot of development time on our side.
Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell: (303 263-3044