<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Password Strength Validation with Regular Expressions</title>
	<atom:link href="http://www.zorched.net/2009/05/08/password-strength-validation-with-regular-expressions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zorched.net/2009/05/08/password-strength-validation-with-regular-expressions/</link>
	<description>Musings of a software developer in Milwaukee, WI.</description>
	<lastBuildDate>Fri, 05 Mar 2010 11:50:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: *blog &#187; Blog Archive &#187; Visual password strength checker for jQuery</title>
		<link>http://www.zorched.net/2009/05/08/password-strength-validation-with-regular-expressions/comment-page-1/#comment-16038</link>
		<dc:creator>*blog &#187; Blog Archive &#187; Visual password strength checker for jQuery</dc:creator>
		<pubDate>Mon, 25 Jan 2010 19:30:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorched.net/?p=340#comment-16038</guid>
		<description>[...] on the work of http://www.zorched.net/2009/05/08/password-strength-validation-with-regular-expressions/ and [...]</description>
		<content:encoded><![CDATA[<p>[...] on the work of <a href="http://www.zorched.net/2009/05/08/password-strength-validation-with-regular-expressions/" rel="nofollow">http://www.zorched.net/2009/05/08/password-strength-validation-with-regular-expressions/</a> and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vaibhav</title>
		<link>http://www.zorched.net/2009/05/08/password-strength-validation-with-regular-expressions/comment-page-1/#comment-15900</link>
		<dc:creator>vaibhav</dc:creator>
		<pubDate>Sat, 07 Nov 2009 18:14:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorched.net/?p=340#comment-15900</guid>
		<description>Pretty nice explanation. Thanks a lot.
I have implemented a it on one of my website.
Take a look at the script I have written. http://www.techpint.com/programming/regular-expression-check-password-strength</description>
		<content:encoded><![CDATA[<p>Pretty nice explanation. Thanks a lot.<br />
I have implemented a it on one of my website.<br />
Take a look at the script I have written. <a href="http://www.techpint.com/programming/regular-expression-check-password-strength" rel="nofollow">http://www.techpint.com/programming/regular-expression-check-password-strength</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony Norton</title>
		<link>http://www.zorched.net/2009/05/08/password-strength-validation-with-regular-expressions/comment-page-1/#comment-15821</link>
		<dc:creator>Tony Norton</dc:creator>
		<pubDate>Tue, 13 Oct 2009 18:59:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorched.net/?p=340#comment-15821</guid>
		<description>I modified Geoff&#039;s regex for my situation for:
8 characters only

Password must contain 3 out of the 4 of these:
• lowercase letter
• uppercase letter
• number
• special character ! @ $ % ^ &amp; * ( ) + ?

^(((?=.*[a-z])(?=.*[A-Z])(?=.*[\d]))&#124;((?=.*[a-z])(?=.*[A-Z])(?=.*[\W]))&#124;((?=.*[a-z])(?=.*[\d])(?=.*[\W]))&#124;((?=.*[A-Z])(?=.*[\d])(?=.*[\W]))).{8,8}$</description>
		<content:encoded><![CDATA[<p>I modified Geoff&#8217;s regex for my situation for:<br />
8 characters only</p>
<p>Password must contain 3 out of the 4 of these:<br />
• lowercase letter<br />
• uppercase letter<br />
• number<br />
• special character ! @ $ % ^ &amp; * ( ) + ?</p>
<p>^(((?=.*[a-z])(?=.*[A-Z])(?=.*[\d]))|((?=.*[a-z])(?=.*[A-Z])(?=.*[\W]))|((?=.*[a-z])(?=.*[\d])(?=.*[\W]))|((?=.*[A-Z])(?=.*[\d])(?=.*[\W]))).{8,8}$</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geoff Lane</title>
		<link>http://www.zorched.net/2009/05/08/password-strength-validation-with-regular-expressions/comment-page-1/#comment-15601</link>
		<dc:creator>Geoff Lane</dc:creator>
		<pubDate>Mon, 31 Aug 2009 18:03:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorched.net/?p=340#comment-15601</guid>
		<description>Dave and Lee,
The assertions don&#039;t return matches, just true/false, so they can&#039;t be counted using repetition operations like {3,}. I think your best bet in those cases is to separate them out into multiple regex expressions and just count your matches.

As Dave suggests, you can also use alternation (or operator) to do this, but you then have to create all the permutations of the assertions:
&lt;em&gt;
^.*(?=.{12,})(((?=.*[a-z])(?=.*[A-Z])(?=.*[\d]))&#124;((?=.*[a-z])(?=.*[\d])(?=.*[\W]))&#124;((?=.*[A-Z])(?=.*[\d])(?=.*[\W]))&#124;((?=.*[a-z)(?=.*[A-Z])(?=.*[\d]))).*$
&lt;/em&gt;

It gets pretty gnarly pretty quickly...</description>
		<content:encoded><![CDATA[<p>Dave and Lee,<br />
The assertions don&#8217;t return matches, just true/false, so they can&#8217;t be counted using repetition operations like {3,}. I think your best bet in those cases is to separate them out into multiple regex expressions and just count your matches.</p>
<p>As Dave suggests, you can also use alternation (or operator) to do this, but you then have to create all the permutations of the assertions:<br />
<em><br />
^.*(?=.{12,})(((?=.*[a-z])(?=.*[A-Z])(?=.*[\d]))|((?=.*[a-z])(?=.*[\d])(?=.*[\W]))|((?=.*[A-Z])(?=.*[\d])(?=.*[\W]))|((?=.*[a-z)(?=.*[A-Z])(?=.*[\d]))).*$<br />
</em></p>
<p>It gets pretty gnarly pretty quickly&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee</title>
		<link>http://www.zorched.net/2009/05/08/password-strength-validation-with-regular-expressions/comment-page-1/#comment-15600</link>
		<dc:creator>Lee</dc:creator>
		<pubDate>Mon, 31 Aug 2009 16:58:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorched.net/?p=340#comment-15600</guid>
		<description>I have the same issue as Dave.  How can I handle this in RegEx?

Password must be at least 12 characters long.

AND 

Password must contain 3 out of the 4 of these:
• lowercase letter
• uppercase letter
• number
• special character ! @ $ % ^ &amp; * ( ) + ?</description>
		<content:encoded><![CDATA[<p>I have the same issue as Dave.  How can I handle this in RegEx?</p>
<p>Password must be at least 12 characters long.</p>
<p>AND </p>
<p>Password must contain 3 out of the 4 of these:<br />
• lowercase letter<br />
• uppercase letter<br />
• number<br />
• special character ! @ $ % ^ &amp; * ( ) + ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.zorched.net/2009/05/08/password-strength-validation-with-regular-expressions/comment-page-1/#comment-15597</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Tue, 25 Aug 2009 01:58:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorched.net/?p=340#comment-15597</guid>
		<description>Hi,
Thanks for the explanation.

How do you go about requiring at least 3 of 4 assertions?  We require 3 of 4 within the sets upper, lower, numeric, and special.  I want to use {3,} somewhere I think.  One idea I had would be to use alternation to list out all of the possibilities.  Is that possible with assertions?

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Thanks for the explanation.</p>
<p>How do you go about requiring at least 3 of 4 assertions?  We require 3 of 4 within the sets upper, lower, numeric, and special.  I want to use {3,} somewhere I think.  One idea I had would be to use alternation to list out all of the possibilities.  Is that possible with assertions?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Beau Beauchamp</title>
		<link>http://www.zorched.net/2009/05/08/password-strength-validation-with-regular-expressions/comment-page-1/#comment-15596</link>
		<dc:creator>Beau Beauchamp</dc:creator>
		<pubDate>Sun, 23 Aug 2009 10:46:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorched.net/?p=340#comment-15596</guid>
		<description>Geoff, you are a RegEx Jedi! Thank you so much for these! Exactly what I was looking for! THANK YOU!  :D</description>
		<content:encoded><![CDATA[<p>Geoff, you are a RegEx Jedi! Thank you so much for these! Exactly what I was looking for! THANK YOU!  :D</p>
]]></content:encoded>
	</item>
</channel>
</rss>
