regular expression help

From: Date: Thu, 24 Jun 2004 16:06:38 +0000
Subject: regular expression help
Groups: php.db 
Request: Send a blank email to php-db+get-34924@lists.php.net to get a copy of this message
The *if* statement should fail with the password abcdef being qualified but it never fails ? If I understand the expression right, it should have at 1 number in it between 2 letters ? $password = abcdef; if (preg_match ("/[A-z]+[0-9]+[A-z]+/", $password)) { die ("You must have a number between 2 letters in your password ... 0-9"); } Larry Sandwick Sarreid, Ltd. Network/System Administrator phone: (252) 291-1414 x223 fax : (252) 237-1592 _____ My Inbox is protected by SPAMfighter 2224 spam mails have been blocked so far. Download free SPAMfighter <http://www.spamfighter.com/> today!

« previous php.db (#34924) next »