. between 6 and 10 alphanum characters
. allowed A-Z,a-z,0-9,@,$,_
. Must begin with a letter
. Must contain at least one number
. cannot contain two consecutive identical characters
. cannot contain two consecutive identical numbers
i have these till now :D
string pattern1 = @"^[a-zA-Z]+";
string pattern2 = @"[0-9]+";
string pattern3 = @"[@#$%]*";
anybody know how to do the consecutive thing?
stackoverflow