Hello Wouldn't be easier just to loop over characters in password and count what you need? ;)
Stano > -----Original Message----- > From: Discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED] On Behalf Of Bill Bassler > Sent: Monday, December 03, 2007 2:08 PM > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > Subject: Re: [ADVANCED-DOTNET] Strong Password server side > verification > > The following expression appears to be much closer to what's required. > > (?=.*[A-Z].*[A-Z])(?=.*[a-z].*[a-z])(?=.*\d.*\d)([EMAIL PROTECTED]'^_= > :;[EMAIL PROTECTED] > '^_=:;*-.])[EMAIL PROTECTED]'^=:;*-.]{10,25}$ > > However, it also appears that the differences in the various > regex implementations are an issue. I'm working with asp.net. > I'm attempting to use a client side regex validator and also > need server side validation. > The server side validation can be covered using the > expression above; browser validation is still a problem. > > The expression functions as expected using the asp.net RegEx > library on the server. However, when I test it using the > asp.net client-side RegularExpression validation control > (which emits browser JavaScript) or from a JavaScript RegEx tester, > > e.g. http://www.regular-expressions.info/javascriptexample.html > > there are no matches when there should be. > > Any ideas on how to work-around the differences with what > appears to be differences between JavaScript RegEx and the > System.Text.RegularExpression.RegEx class? > > =================================== > This list is hosted by DevelopMentorŽ http://www.develop.com > > View archives and manage your subscription(s) at > http://discuss.develop.com =================================== This list is hosted by DevelopMentorŽ http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com