[Javascript] RegEx for Password w/ spl rules

shawn_milochik at godivachoc.com shawn_milochik at godivachoc.com
Tue Jun 29 12:28:13 CDT 2004





Ha ha.  Thanks for the compliment.  I do love regexes, but I don't think
I'm
a master.  Anyway, I prefer to make things simple, and maybe use multiple
statements to check such a variety of things.  See my last post.  I failed
to
create any dazzling, complicated, big mother regex.

Shawn




                                                                           
             flavio at economisa.                                             
             com.br                                                        
             Sent by:                                                   To 
             javascript-bounce         javascript at LaTech.edu               
             s at LaTech.edu                                               cc 
                                                                           
                                                                   Subject 
             06/29/2004 02:18          Re: [Javascript] RegEx for Password 
             PM                        w/ spl rules                        
                                                                           
                                                                           
             Please respond to                                             
             javascript at LaTech                                             
                   .edu                                                    
                                                                           
                                                                           





[a-z0-9A-Z at ._]{4}

Not so sure, but don't worry, we have here *Mr.* /Shawn "Reg Exp.
Master" Milo/ soon we'll get a reply from him ^^

---
Flavio Gomes
flavio at economisa.com.br



AMIT UCHAT wrote:

> Hi
> I have been trying to Develop RegEx for a Password authentication with
> following rules:
> 1) Must be between 8 - 24 characters
> 2) Should have atleast 1 digit
> 3) Should have atleast 1 Alphabatic Character
> 3) Valid characters are [a-z0-9A-Z at ._]
> 4) Any Characters cannot repeat more then thrice e.g. Password is
> "mynaaaame1" is
>    invalid because character 'a' repeated more then thrice consecutively.
>
> Rule # 1 is taken care of in password textbox by limiting textbox sixe
> with min=8 and max=24.
>
> Rule # 2 & 3: ^[a-z0-9A-Z at ._]+$
>
> Rule # 4: How do I apply it to ^[a-z0-9A-Z at ._]+$ RegEx?
>
> Any help/Hints/Direction be much appereciated.
>
> Adios,
> Amit
>
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> New and Improved Yahoo! Mail
> <
http://us.rd.yahoo.com/mail_us/taglines/100/*http://promotions.yahoo.com/new_mail/static/efficiency.html
>
> - 100MB free storage!
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript




**********************************************************************
This e-mail and any files transmitted with it may contain 
confidential information and is intended solely for use by 
the individual to whom it is addressed.  If you received
this e-mail in error, please notify the sender, do not 
disclose its contents to others and delete it from your 
system.

**********************************************************************




More information about the Javascript mailing list