> - it seems to me that simple and very common constraints such as "must 
> contain at least one uppercase, one lowercase, one digit, one 
> non-alphanumeric" do not translate easily or at all to a single regex

Well, for my current rule set:

--------- 8<--------- 8<--------- 8<--------- 8<--------- 
The password has to be at least 9 and at most 127 signs in length. It has to 
contain at least 1 sign from each of the following groups:
a - z
A - Z
0 - 9
! $ % / ( ) = ? [ ] { } + # < > , ; : . - _
Other signs (including the space character) are not allowed.
--------- 8<--------- 8<--------- 8<--------- 8<---------

It is: return 
preg_match("#.*^(?=.{9,127})(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!$%/()=?[\]{}+\#<>,:\\.\-_]).*$#",
 
$password);


Regards, Michael

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Fusionforge-general mailing list
Fusionforge-general@lists.fusionforge.org
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-general

Reply via email to