[thelist] regex help - password pattern - javascript
Anthony Ettinger
apwebdesign at yahoo.com
Mon Sep 26 15:07:44 CDT 2005
--- Tom Dell'Aringa <pixelmech at yahoo.com> wrote:
> Hi all,
>
> I just have not had that "ah-ha!" moment with regex
> yet - it doesn't click when I try and make a
> pattern. I need a pattern for a password that will
> require minimum 8 characters with at least 2
> numbers. I only got this far:
>
> /^([\w][\d]{2,}){8,}$/
>
> I'm thinking this really only says one word char and
> 2 digits, 8 times...somewhat confused. Any
> help would be great.
>
I tried playing around with perl's regex, still
couldn't come up with something limiting to 8 only \w
and 2 only \d without specifying order.
You can read more: '$perldoc perlretut' and '$perldoc
perlre'
Anthony Ettinger
ph: (408) 656-2473
blog: http://www.chovy.com
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the thelist
mailing list