String Expression for aplpahnumeric password
| From: | Adam | Date: | Thu, 31 Oct 2002 22:28:39 +0000 |
| Subject: | String Expression for aplpahnumeric password | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-122422@lists.php.net to get a copy of this message | ||
I need a string expression to verify an alpha numeric password. This is what
i've come up with , however it does not work:
elseif ( (!ereg ("^[a-zA-Z]+$", $password)) || (!ereg ("^[0-9]+$",
$password)))
can anybody help? Thanks in advance
ADAM