Solved

Regular Expression

Posted on 2010-11-17
3
367 Views
Last Modified: 2012-05-10
Can anyone help me to create a regular expression for below validation,

Cannot start a password with a digit
Minimum password length      8
Maximum password length 10
Cannot have consecutive repeating characters (Ex:- aabd312)
Require minmum 1 digit in password      
Allowed special characters      $ @ # _

Thanks
Shaminda
0
Comment
Question by:PMS-ICT
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 10

Expert Comment

by:Jini Jose
ID: 34153655
you can design your own expression with this free tool

http://www.radsoftware.com.au/regexdesigner/

0
 

Author Comment

by:PMS-ICT
ID: 34153796
Thanks for the link to regexdesigner, Unfortunately I’m not very sure how to use it:(
0
 
LVL 35

Accepted Solution

by:
Terry Woods earned 500 total points
ID: 34159209
Use this:

Dim re As Regex = New Regex("^(?!\d)(?!.*(.)\1)(?=.*\d)[\w\d$@#]{8,10}$")
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month10 days, 6 hours left to enroll

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question