Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 20th, 2006, 05:02 AM
Authorized User
 
Join Date: Oct 2006
Location: Bangalore, Karnataka, India.
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default reg exp for password

How to test that the password should satisfy the following condition
1) It should be atleast 6 char long
2) It should contain alphanumeric values with atleast 1 character and number.
3) It should not contain any repeated consecutive characters.


Any help on this is really appreciated. Thanks in advance.
 
Old October 25th, 2006, 01:39 AM
Authorized User
 
Join Date: May 2006
Location: , , .
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to kaos_frack
Default

it is really hard or maybe even impossible to implement all those in one regular expression
you might need to right several tests to ensure that password meets the requirements

 
Old October 25th, 2006, 02:04 AM
Authorized User
 
Join Date: Oct 2006
Location: Bangalore, Karnataka, India.
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The third one is done. If you can give the regular expression for the second condition then it i'll be ok. I think there can be a regular expression for checking that a string contains at least one character and a number. Please help!!!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a new process to install SQL Server Exp tknnguyen C# 5 July 25th, 2008 03:24 AM
reg. exp. for up to 2 decimal places everest Javascript How-To 1 February 11th, 2008 04:51 PM
Visual Basic Exp 2005 Sorting 009221 Visual Basic 2005 Basics 1 July 2nd, 2007 03:02 PM
Reg Ex help for password validation mat41 Javascript 7 February 1st, 2007 04:29 AM
With Me .Show() I get error "end of statement exp kenn_rosie VS.NET 2002/2003 1 March 20th, 2006 09:12 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.