Hello, "Adam" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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))) > How about this? elseif (!eregi("^[[:alnum:]]+$", $password)) HTH, - E -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- [PHP] String Expression for aplpahnumeric password Adam
- @ Edwin