I need a regular expression in ASP.NET that accept 6 characters
and
- At second position it should accept only
underscore (_)
and - At third position it should accept maybe
underscore (_)
orhash (#)
and - At fourth position it should accept only
hash (#)
.
Note: In regex user can only enter: Number
, Alphabets
or Star (*)
at any position instead of above mentioned positions.
Can any one help me out on this?
Like:
- a__cde
- ab##cd
- a_#cde
- ******
- abcdef
- 123456