Click here to Skip to main content
15,030,067 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i want to insert regular expression for password with alphanumeric characters and special characters.pls send regular expression
Posted
Comments
Sandeep Mewara 6-Feb-13 0:51am
   
It does not work like this here.

Here is what is expected of enquirers:
1. TRY first what you want to do! You may find that it's not that hard.
2. Formulate what was done by you that looks like an issue/not working.

Try them and tell if you face issues.
Members will be more than happy to help like this.

Regular expression for Alphabet, numeric and special character[^]

I usually prefer this
^.*(?=.{6,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[^a-zA-Z0-9]).*$

as it qualifies for

  • At least 6 chars
  • At least 1 uppercase char (A-Z)
  • At least 1 number (0-9)
  • At least one special char
   
v2
Comments
Sandeep Mewara 6-Feb-13 0:51am
   
Please don't encourage 'give/send me code' type questions.
Abhishek Pant 6-Feb-13 0:57am
   
copy,point noted for future reference to answer question.
Sandeep Mewara 6-Feb-13 1:14am
   
:thumbsup: keep up the good work.
Abhishek Pant 6-Feb-13 1:19am
   
thanks.
" :thumbsup: " for you too.
Menon Santosh 6-Feb-13 8:01am
   
my + 5
Abhishek Pant 6-Feb-13 9:53am
   
thanks.
   
Comments
Sandeep Mewara 6-Feb-13 0:51am
   
Please don't encourage 'give/send me code' type questions.
[no name] 6-Feb-13 0:53am
   
It's a help !!
Sandeep Mewara 6-Feb-13 1:01am
   
No it is not. Please comply by forum guidelines.
[no name] 6-Feb-13 1:05am
   
Very well, whatever you're saying is just a matter of perspective...
If you don't want to help, then don't comment !
Sandeep Mewara 6-Feb-13 1:12am
   
I just wanted to guide you but looks like a lost case - your wish.
[no name] 6-Feb-13 1:05am
   
And ya I have already written that Dare to Google first...
So chill !!
Sandeep Mewara 6-Feb-13 1:13am
   
And I did see your link shared! It's a java based and OP was looking for ASP.NET... so your help or 'dare' was actually not what OP must be expecting.

May be you would like to 'help' with another url.
[no name] 6-Feb-13 1:28am
   
Its all about Regular Expression..!!
Sandeep Mewara 6-Feb-13 1:39am
   
:)

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