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

Thanks
Shaminda
PMS-ICTAsked:
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}$")
0
 
Jini Jose.Net Team LeadCommented:
you can design your own expression with this free tool

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

0
 
PMS-ICTAuthor Commented:
Thanks for the link to regexdesigner, Unfortunately I’m not very sure how to use it:(
0
All Courses

From novice to tech pro — start learning today.