<?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"
	>
<channel>
	<title>Comments on: Non-Greedy Regular Expressions</title>
	<atom:link href="http://www.bayview.com/blog/2003/02/12/non-greedy-regular-expressions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bayview.com/blog/2003/02/12/non-greedy-regular-expressions/</link>
	<description>Bay View Consulting Services, Inc.</description>
	<pubDate>Thu, 28 Aug 2008 18:31:35 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: William Ward</title>
		<link>http://www.bayview.com/blog/2003/02/12/non-greedy-regular-expressions/#comment-15014</link>
		<dc:creator>William Ward</dc:creator>
		<pubDate>Fri, 10 Aug 2007 02:23:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.bayview.com/blog/?p=13#comment-15014</guid>
		<description>Thanks, I was so busy thinking about the .+'s that I forgot that other dot.</description>
		<content:encoded><![CDATA[<p>Thanks, I was so busy thinking about the .+&#8217;s that I forgot that other dot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: apt</title>
		<link>http://www.bayview.com/blog/2003/02/12/non-greedy-regular-expressions/#comment-13449</link>
		<dc:creator>apt</dc:creator>
		<pubDate>Tue, 10 Jul 2007 22:54:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.bayview.com/blog/?p=13#comment-13449</guid>
		<description>The line 

my ($host, $domain) = ($fqdn =~ /(.+?).(.+)/);

won't do what you want.  You need to escape the middle ".", otherwise it will just match any character.  The correct line would be:

my ($host, $domain) = ($fqdn =~ /(.+?)\.(.+)/);</description>
		<content:encoded><![CDATA[<p>The line </p>
<p>my ($host, $domain) = ($fqdn =~ /(.+?).(.+)/);</p>
<p>won&#8217;t do what you want.  You need to escape the middle &#8220;.&#8221;, otherwise it will just match any character.  The correct line would be:</p>
<p>my ($host, $domain) = ($fqdn =~ /(.+?)\.(.+)/);</p>
]]></content:encoded>
	</item>
</channel>
</rss>
