RE: regular expression help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[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");
}

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux