<?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: Fun With .NET Regex Balancing Groups</title>
	<atom:link href="http://blog.stevenlevithan.com/archives/balancing-groups/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.stevenlevithan.com/archives/balancing-groups</link>
	<description>A JavaScript and regular expression centric blog</description>
	<lastBuildDate>Thu, 11 Mar 2010 18:49:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Parth Patel</title>
		<link>http://blog.stevenlevithan.com/archives/balancing-groups/comment-page-1#comment-41752</link>
		<dc:creator>Parth Patel</dc:creator>
		<pubDate>Mon, 12 Oct 2009 12:02:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/archives/balancing-groups#comment-41752</guid>
		<description>Hi,

I am not used to Regular Expression. In your example

^
(?=.*[a-z](?)&#124;)  # If a-z is found, push to the N stack
(?=.*[A-Z](?)&#124;)  # If A-Z is found, push to the N stack
(?=.*[0-9](?)&#124;)  # If 0-9 is found, push to the N stack
(?){2}          # Pop the last two captures off the N stack
.{8,}               # Match eight or more characters

What does (?=.*[a-z](?)&#124;) do? I cannot understand why (?) is taken after .*[a-z] and why .*[a-z] is used instead of [a-z]. Can you please explain in detail?

Thanks in advanced</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am not used to Regular Expression. In your example</p>
<p>^<br />
(?=.*[a-z](?)|)  # If a-z is found, push to the N stack<br />
(?=.*[A-Z](?)|)  # If A-Z is found, push to the N stack<br />
(?=.*[0-9](?)|)  # If 0-9 is found, push to the N stack<br />
(?){2}          # Pop the last two captures off the N stack<br />
.{8,}               # Match eight or more characters</p>
<p>What does (?=.*[a-z](?)|) do? I cannot understand why (?) is taken after .*[a-z] and why .*[a-z] is used instead of [a-z]. Can you please explain in detail?</p>
<p>Thanks in advanced</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JD Bell</title>
		<link>http://blog.stevenlevithan.com/archives/balancing-groups/comment-page-1#comment-26270</link>
		<dc:creator>JD Bell</dc:creator>
		<pubDate>Tue, 24 Feb 2009 14:10:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/archives/balancing-groups#comment-26270</guid>
		<description>See &lt;a href=&quot;http://www.m-8.dk/resources/RegEx-balancing-group.aspx&quot; rel=&quot;nofollow&quot;&gt;http://www.m-8.dk/resources/RegEx-balancing-group.aspx&lt;/a&gt; for a great example of capturing the nested text. For example, for the input:

(7 + (9 * 10))

you can get:

1) 9 * 10
2) 7 + (9 * 10)</description>
		<content:encoded><![CDATA[<p>See <a href="http://www.m-8.dk/resources/RegEx-balancing-group.aspx" rel="nofollow">http://www.m-8.dk/resources/RegEx-balancing-group.aspx</a> for a great example of capturing the nested text. For example, for the input:</p>
<p>(7 + (9 * 10))</p>
<p>you can get:</p>
<p>1) 9 * 10<br />
2) 7 + (9 * 10)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin Kirk</title>
		<link>http://blog.stevenlevithan.com/archives/balancing-groups/comment-page-1#comment-24978</link>
		<dc:creator>Martin Kirk</dc:creator>
		<pubDate>Wed, 06 Aug 2008 06:54:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/archives/balancing-groups#comment-24978</guid>
		<description>Ohhhh

With these balancing groups - its possible to make a Script Parser/validater !!

with the counter, you&#039;ll check for start and ending scope...</description>
		<content:encoded><![CDATA[<p>Ohhhh</p>
<p>With these balancing groups &#8211; its possible to make a Script Parser/validater !!</p>
<p>with the counter, you&#8217;ll check for start and ending scope&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: c-dos</title>
		<link>http://blog.stevenlevithan.com/archives/balancing-groups/comment-page-1#comment-24934</link>
		<dc:creator>c-dos</dc:creator>
		<pubDate>Sun, 29 Jun 2008 21:57:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/archives/balancing-groups#comment-24934</guid>
		<description>Fantastic Post!
Thank you!</description>
		<content:encoded><![CDATA[<p>Fantastic Post!<br />
Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: M-Dayyan</title>
		<link>http://blog.stevenlevithan.com/archives/balancing-groups/comment-page-1#comment-20393</link>
		<dc:creator>M-Dayyan</dc:creator>
		<pubDate>Tue, 20 May 2008 11:07:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/archives/balancing-groups#comment-20393</guid>
		<description>It&#039;s great and clearly.
Thanks</description>
		<content:encoded><![CDATA[<p>It&#8217;s great and clearly.<br />
Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
