Regular Expression for Password Validation C#

后端 未结 3 647
面向向阳花
面向向阳花 2021-01-24 02:50

I want to validate a password using regular expression in c#.

These are the conditions :

  1. should not start with digit or special character
  2. should n
3条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-24 03:02

    ^(?=.*[A-Za-z])(?=.*[0-9])(?=.*[@#_])[a-zA-Z][\w@#]{6,}[a-zA-Z0-9]$
    

提交回复
热议问题