|
-
Dec 28th, 2004, 04:29 AM
#1
Thread Starter
Addicted Member
Validate the input
Hi,
I have a password textbox on my form. My requirement is that the password should have atleast 2 digits and 1 special character. I tried implementing it with a RegularExpressionValidator with the validation expression defined as
[a-zA-Z]*[!@#$%^&*_+|\=-]{1,}[\d]{2,}
The problem with this expression is that this requires the input to have the same order of characters while i would like the characters to be allowed in any order. As long as there are 2 digits and 1 spl character it should accept.
Thanx in advance
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|