The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
preg_match help required for password security
Hi,
Could anyone please help with the preg_match expression I will need to perform the following. I need it to check a password field for a password that contains :- numeric chars (min of 1) upper case letters (min of 1) lower case letters (min of 1) The password must be at least 6 characters and only be made up of upper and lower case letters and numbers. Any help would be greatly appreciated. Regards, |
#2
|
||||
|
||||
I'm not sure if that's possible in a single regular expression. Here's 4, though:
Code:
numeric chars (min of 1) /\d/ upper case letters (min of 1) /[A-Z]/ lower case letters (min of 1) /[a-z]/ The password must be at least 6 characters and only be made up of upper and lower case letters and numbers. /[a-z0-9]{6,}/i |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|