Click here to Skip to main content
15,917,005 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
what is the regular expression to constraint the password input such that the user must enter a password which minimum length is 7 and containing at least one non-alphanumeric char
thanks all
[no name] 19-Aug-12 11:35am    
So you have not actually tried anything you just want someone to do your job for you... is that the gist of your "question"?
Khaldoon Al-Talib 19-Aug-12 11:48am    
no I tried but I couldn't
I think there is some thing I don't no
any way that is not a home work but I need it in my web site

1 solution

It's complex - but possible:
The characters between the '[' and ']' are the permitted special characters. To be honest, I wouldn't use a regex for this - I'd do it in code, it's a lot more maintainable.
Share this answer
Khaldoon Al-Talib 19-Aug-12 12:07pm    
thank you I will tray it and accept the answer few later
thank you very much
ridoy 19-Aug-12 13:27pm    

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900