Puzzle: What regular expression in php would check that the password does not contain 3 consecutive characters as a substring?
Example Code:
<?php
if(preg_match('/(.)\1\1/', $pass)){
form_error($form, t('Passwords cannot contain sequences of 3 or more of the same character.'));
}
?>
1 year 18 weeks ago
As specified at: http://nl3.php.net/manual/en/regexp.reference.back-references.php