Hi,
The following works. But I wouldn't allow users to use
something like -. --- _- in $TestPwd. How can I
implement this ?
--- Steve Edberg <[EMAIL PROTECTED]> wrote:
> if (ereg('^[a-z][-a-z0-9\._]*[a-z]$', $TestPwd)) {
> echo "Good";
> } else {
> echo "Bad password $TestPwd";
> }
Hi,
I need a regex for a username validation. The ereg
function should be used.
o the username must start and end with a-z
o in the middle it could be a-z0-9\.-_
o and never something like this -- -. _- and so on
Thanks for your help
Oliver
=
mailto: [EMAIL PROTECTED]
www.ertl.co.za
2 matches
Mail list logo