[Javascript] RegEx for Password w/ spl rules

Flavio Gomes flavio at economisa.com.br
Tue Jun 29 12:18:15 CDT 2004


[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
>  
>



More information about the Javascript mailing list