hi all,
two quick reg exp problems:
one:
$username must only contain a-z lowercase, 0-9, no spaces, no other characters.
what would the regexp be?
if(ereg("????????????????", $username)) { $valid = "yes" } else { $valid
= "no")
two:
i want to do a really small email validation, just to make sure the
email probably right, as in:
[EMAIL PROTECTED]
what's the best reg exp to use.
i'm aware there are email validating script out there, but I want to
learn for myself
many thanks in advance
justin french
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]