Re: regular expression help
| From: | Matt Matijevich | Date: | Thu, 24 Jun 2004 16:10:31 +0000 |
| Subject: | Re: regular expression help | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-34927@lists.php.net to get a copy of this message | ||
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");
}