RE: [PHP-DB] regular expression help

From: Date: Thu, 24 Jun 2004 17:18:42 +0000
Subject: RE: [PHP-DB] regular expression help
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-34931@lists.php.net to get a copy of this message
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 -----Original Message----- From: Matt Matijevich [mailto:matijevich@alliancetechnologies.net] Sent: Thursday, June 24, 2004 12:11 PM To: php-db@lists.php.net; lgs@sarreid.com Subject: Re: [PHP-DB] regular expression help try this $password = 'abcdef'; if (preg_match ('/\w\d\w/', $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 ---------------------------------------- My Inbox is protected by SPAMfighter 2228 spam mails have been blocked so far. Download free www.spamfighter.com today!

« previous php.db (#34931) next »