Strong Password

Password must be between 6 and 50 characters long and must include at least one upper case letter, one lower case letter, and one number.
Steve Wortham
12/31/2009 20:49:11

3 comments so far.
ILee said on 05/17/2010 12:29:30
The sentence &quot;This will not work reliably among Javascript implementations.&quot; means that if you use this regular expression in a .NET RegularExpressionValidator you must set the property &quot;EnableClientScript&quot; to false. <br /><br />A small point but one that will prevent this expression from working in CLR 2.0<br /><br />Thanks for this site and the expressions on it.

Steve Wortham said on 05/17/2010 14:16:47
You are correct. Of course, I do need to test this to be sure. Positive lookaheads are a Javascript 1.5 feature. In theory it should be usable in modern browsers today if it wasn&#39;t for this IE bug: <br /><a href="<br" target="_blank" rel="nofollow"></a><br /><br />However, I&#39;m not sure if this expression is affected by the bug or not. I&#39;ll test it out later today and may revise my disclaimer. ;)

Steve Wortham said on 05/20/2010 01:22:04
So it appears to work fine in IE so I&#39;ve removed my disclaimer. It&#39;s definitely something to look out for with positive lookaheads and JScript, but at least this regular expression works.

<< back to Library