S
Steve
Hi all
I have to validate a password to determine whether or not it adheres to
certain rules. For example, the password must contain at least 1 number, at
least 1 uppercase character and at least 1 lowercase character. Are regular
expressions the way to perform this validation? I know I can hard-code it in
at the moment, but the rules may change in the future and I'd like to store
the expression in an external file so it can be altered at any time.
I haven't used Regular Expressions before so I'm not sure if they can be
used with this. If they can, then could some-one please provide a code
snippet of what the expression should be for the rule in the example above,
and any good links to regular expressions articles are most welcome!!!
Kind regards,
Steve.
I have to validate a password to determine whether or not it adheres to
certain rules. For example, the password must contain at least 1 number, at
least 1 uppercase character and at least 1 lowercase character. Are regular
expressions the way to perform this validation? I know I can hard-code it in
at the moment, but the rules may change in the future and I'd like to store
the expression in an external file so it can be altered at any time.
I haven't used Regular Expressions before so I'm not sure if they can be
used with this. If they can, then could some-one please provide a code
snippet of what the expression should be for the rule in the example above,
and any good links to regular expressions articles are most welcome!!!
Kind regards,
Steve.