RE: [PHP-DB] regular expression help
| From: | Matt Matijevich | Date: | Thu, 24 Jun 2004 19:21:59 +0000 |
| Subject: | RE: [PHP-DB] regular expression help | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-34936@lists.php.net to get a copy of this message | ||
[snip]
That does not work either... I can not make the statement fail!!!
I have tried
$password = "123456";
and
$password = "abcdef";
I have change the if statement to what is below and past in all letters
and
it still works?
if (preg_match ('/\d/', $password)) {
die ("You must have a number between 2 letters in your password ...
0-9");
// Larry
[/snip]
sorry, this should be:
if (!preg_match ('/\d/', $password)) {
die ("You must have a number between 2 letters in your password ...
0-9");
}