Re: [PHP] Password filter
- Date: Sun, 14 Jan 2018 10:45:21 +0100
- From: Per Jessen <per@xxxxxxxxxxxx>
- Subject: Re: [PHP] Password filter
Tedd Sperling wrote:
> I agree, but tell that to my client.
if the requirements are really simple, such as those you mentioned in
your OP, a single regex, possibly split into more for clarity, will
/[A-Z]/ "must contain at least one upper case"
/[a-z]/ "must contain at least one lower case"
Keep an eye out for whitespace - e.g. trailing.
Per Jessen, Zürich (0.8°C)
http://www.cloudsuisse.com/ - your owncloud, hosted in Switzerland.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php