[thelist] regex help - password pattern - javascript

Matt Warden mwarden at gmail.com
Mon Sep 26 16:20:15 CDT 2005


On 9/26/05, Frank <lists at frankmarion.com> wrote:
> ^([\w\d]{2,8})$
>
> ^ start string
>          Remember
>          (
>          [any \word or \digit] {two to eight times repeated}
>          )
> $ end string

This will make sure there are no invalid characters, but it will not
validate against the rule that there must be at least two digits. For
example, try matching against 'aa'. It will pass.

--
Matt Warden
Miami University
Oxford, OH, USA
http://mattwarden.com


This email proudly and graciously contributes to entropy.


More information about the thelist mailing list