RE: [PHP-DB] regular expression help

From: Date: Thu, 24 Jun 2004 19:19:39 +0000
Subject: RE: [PHP-DB] regular expression help
Groups: php.db 
Request: Send a blank email to php-db+get-34935@lists.php.net to get a copy of this message
you only want to check to see if there is at least one digit? If that is true, this should work: if(preg_match('/\d/',$password)) { echo 'password ok'; }

« previous php.db (#34935) next »