Regular Expression

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      $ @ # _

Who is Participating?
Terry WoodsConnect With a Mentor IT GuruCommented:
Use this:

Dim re As Regex = New Regex("^(?!\d)(?!.*(.)\1)(?=.*\d)[\w\d$@#]{8,10}$")
Jini JoseSenior .Net DeveloperCommented:
you can design your own expression with this free tool

PMS-ICTAuthor Commented:
Thanks for the link to regexdesigner, Unfortunately I’m not very sure how to use it:(
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.