[Javascript] RegEx for Password w/ spl rules

AMIT UCHAT a1_uchat at yahoo.com
Tue Jun 29 11:33:17 CDT 2004


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 - 100MB free storage!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20040629/5313a023/attachment.htm>


More information about the Javascript mailing list