<?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: When Regular Expressions Gets Greedy</title>
	<atom:link href="http://josephscott.org/archives/2009/05/when-regular-expressions-gets-greedy/feed/" rel="self" type="application/rss+xml" />
	<link>http://josephscott.org/archives/2009/05/when-regular-expressions-gets-greedy/</link>
	<description></description>
	<lastBuildDate>Wed, 28 Jul 2010 19:47:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
	<item>
		<title>By: Joseph Scott</title>
		<link>http://josephscott.org/archives/2009/05/when-regular-expressions-gets-greedy/#comment-4580</link>
		<dc:creator>Joseph Scott</dc:creator>
		<pubDate>Mon, 04 May 2009 20:21:43 +0000</pubDate>
		<guid isPermaLink="false">http://josephscott.org/?p=1214#comment-4580</guid>
		<description>True, but that wouldn&#039;t have illustrated what happens when you get hit by greedy regular expressions :-)</description>
		<content:encoded><![CDATA[<p>True, but that wouldn&#8217;t have illustrated what happens when you get hit by greedy regular expressions :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Beau Lebens</title>
		<link>http://josephscott.org/archives/2009/05/when-regular-expressions-gets-greedy/#comment-4579</link>
		<dc:creator>Beau Lebens</dc:creator>
		<pubDate>Mon, 04 May 2009 20:16:12 +0000</pubDate>
		<guid isPermaLink="false">http://josephscott.org/?p=1214#comment-4579</guid>
		<description>You could also have just used a more restrictive character range/class in your regex to avoid this.

something like:

&#039;&#124;anamehere\+([^@]+)@.*$&#124;

or

&#039;&#124;anamehere\+([a-zA-Z0-9-]*)@.*$&#124;

:)</description>
		<content:encoded><![CDATA[<p>You could also have just used a more restrictive character range/class in your regex to avoid this.</p>
<p>something like:</p>
<p>&#8216;|anamehere\+([^@]+)@.*$|</p>
<p>or</p>
<p>&#8216;|anamehere\+([a-zA-Z0-9-]*)@.*$|</p>
<p>:)</p>
]]></content:encoded>
	</item>
</channel>
</rss>