List Info

Thread: Looking for a complex regex for a password.




Looking for a complex regex for a password.
user name
2006-06-28 02:48:00
Xicheng Jia wrote:
> You can surely use alternations to append three other
cases..and to
> make sure all four conditions are satisfied:
>

=>     ^(?=.*?[a-z])(?=.*?[A-Z])(?=.*?\d)(?=.*?$#!)[\w$#!]$

sorry for the typo, forgot to change to the class-set when
copying/pasting.
from 
        (?=.*?$#!)  
to 
        (?=.*?[$#!]) 

Xicheng


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regexgooglegroups.com
To unsubscribe from this group, send email to
regex-unsubscribegooglegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )