Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the regular expression for this "password"?

Tags:

c#

regex

I want regular expression that contains at least one alphanumeric character, at least one non alphanumeric character (special character) and at least one digit.

Thanks in advance.

like image 429
Girish Chaudhari Avatar asked May 19 '11 03:05

Girish Chaudhari


1 Answers

Correct answer of my question :

regular Expression :

^((?=.[\d])(?=.[a-z])(?=.[A-Z])|(?=.[a-z])(?=.[A-Z])(?=.[^\w\d\s])|(?=.[\d])(?=.[A-Z])(?=.[^\w\d\s])|(?=.[\d])(?=.[a-z])(?=.[^\w\d\s])).{8,30}$

Thanks.

like image 124
Girish Chaudhari Avatar answered Nov 10 '22 06:11

Girish Chaudhari