Click here to Skip to main content
15,896,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I need a regular expression like this
^(?=.*\d)(?=.*[A-Z])(?!.*[\s\\'?>/,"|]).{8,50}$


but it should work on Internet Explorer 6 please....!

need help
Posted
Updated 27-Dec-11 20:38pm
v2

I ran that through Expresso and it says it is a perfectly valid regular expression.
I can't say it will do what you want it to (because I don't have any idea what you expect it to do), but it is perfectly valid and should work anywhere that a Regex is used.

If it isn't working, what isn't it doing?

Get a copy of Expresso [^] - it's free, and it examines and generates Regular expressions. It may help you to work out why it doesn't appear to be working.
 
Share this answer
 
Comments
Baseer haider 28-Dec-11 3:21am    
yes, it is valid because i have already tested it on internet explorer 8 and 9 it is working perfectly but the issue arises in internet explorer 6 can you figure out what I am missing or doing wrong for internet 6 or do you suggest any regular expression which can accept a length of 8 to 50 characters and should have at least one capital letter and a number too but i should work in I.E 6
Actually in I.E 6 it is not working properly on length i.e.{8,50} so in order to deal with that I use string.Length property now it is working fine on all browsers including I.E 6.
 
Share this answer
 

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