All Forums >> [Scripting] >> WSH & Client Side VBScript >> Checking password for upper and lower case letter Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
I can't find the solution to checking a password to see if the user has entered a password with at least one uppercase, one lowercase letter and one number. This piece of code I am playing with is to check for the upper case letter. Can anyone help me please? regards Mandy dim pass dim pass2 pass=times.pass.value pass2=times.pass.value
if instr(1,Ucase(times.pass.value),([0-9A-z]{1})) = 1 then Alert "Password is a success" times.pass.value="" times.pass.focus exit sub else Alert""password is wrong" exit sub end if end sub