<?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 for zytzagoo's den.</title>
	<atom:link href="http://zytzagoo.net/blog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://zytzagoo.net/blog</link>
	<description>On life, web dev and everything in between.</description>
	<pubDate>Tue, 07 Oct 2008 01:15:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>Comment on Extracting images from HTML using regular expressions by zytzagoo</title>
		<link>http://zytzagoo.net/blog/2008/01/23/extracting-images-from-html-using-regular-expressions/#comment-1471</link>
		<dc:creator>zytzagoo</dc:creator>
		<pubDate>Thu, 18 Sep 2008 23:19:43 +0000</pubDate>
		<guid isPermaLink="false">http://zytzagoo.net/blog/2008/01/23/extracting-images-from-html-using-regular-expressions/#comment-1471</guid>
		<description>@Richard: 

1. Using '#' instead of a forward slash is an old habit I picked up. You can use almost any character, as long as they're unique and identical. With forward slashes being a rather common occurence inside a src attribute, I chose to avoid them as a delimiter. It's true that a '#' might also appear inside a src -- but I didn't test if the regex compilation in php would fail in such cases. It could.

2. Because I wanted to capture zero or more of that preceding block. Learning by example might be easier: go to http://erik.eae.net/playground/regexp/regexp.html , paste in the 4 example img tags from the post, and paste in the regex from the post. Now you can change the regex there interactively and see what works and what doesn't.

3. It doesn't necessarily. The question mark makes it non-greedy, and since I wasn't interested in the remaining attributes, I figured it would make it faster. It could very well make it slower -- I didn't test for that :)

4. That's a backrefrence. Backreferences allow you to reuse a part of the regex match. It can get complicated, but it's also quite powerful. Google for more.</description>
		<content:encoded><![CDATA[<p>@Richard: </p>
<p>1. Using &#8216;#&#8217; instead of a forward slash is an old habit I picked up. You can use almost any character, as long as they&#8217;re unique and identical. With forward slashes being a rather common occurence inside a src attribute, I chose to avoid them as a delimiter. It&#8217;s true that a &#8216;#&#8217; might also appear inside a src &#8212; but I didn&#8217;t test if the regex compilation in php would fail in such cases. It could.</p>
<p>2. Because I wanted to capture zero or more of that preceding block. Learning by example might be easier: go to <a href="http://erik.eae.net/playground/regexp/regexp.html" rel="nofollow">http://erik.eae.net/playground/regexp/regexp.html</a> , paste in the 4 example img tags from the post, and paste in the regex from the post. Now you can change the regex there interactively and see what works and what doesn&#8217;t.</p>
<p>3. It doesn&#8217;t necessarily. The question mark makes it non-greedy, and since I wasn&#8217;t interested in the remaining attributes, I figured it would make it faster. It could very well make it slower &#8212; I didn&#8217;t test for that :)</p>
<p>4. That&#8217;s a backrefrence. Backreferences allow you to reuse a part of the regex match. It can get complicated, but it&#8217;s also quite powerful. Google for more.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Extracting images from HTML using regular expressions by Richard</title>
		<link>http://zytzagoo.net/blog/2008/01/23/extracting-images-from-html-using-regular-expressions/#comment-1470</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Thu, 18 Sep 2008 22:23:48 +0000</pubDate>
		<guid isPermaLink="false">http://zytzagoo.net/blog/2008/01/23/extracting-images-from-html-using-regular-expressions/#comment-1470</guid>
		<description>Hi,
I've just started learning regex's and understand most of &lt;code&gt;'#]*src\s*=\s*(["\'])(.*?)\1#im’;&lt;code&gt; but can someone shed some light on a few issues?

1. Why does it use '#' instead of '/' as delimiters?

2. Why does the not angle bracket part( [^/&#62;] ) need an '*' afterwards?

3. Why does the (.*?) need the '?'

4. Oh and what does '\1' at the end mean?

Ok that was more questions than I thought but would be grateful if someone could clarify?</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I&#8217;ve just started learning regex&#8217;s and understand most of <code>'#]*src\s*=\s*(["\'])(.*?)\1#im’;</code><code> but can someone shed some light on a few issues?</p>
<p>1. Why does it use '#' instead of '/' as delimiters?</p>
<p>2. Why does the not angle bracket part( [^/&gt;] ) need an &#8216;*&#8217; afterwards?</p>
<p>3. Why does the (.*?) need the &#8216;?&#8217;</p>
<p>4. Oh and what does &#8216;\1&#8242; at the end mean?</p>
<p>Ok that was more questions than I thought but would be grateful if someone could clarify?</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Hug A Developer by Ivan Nikolic</title>
		<link>http://zytzagoo.net/blog/2008/09/01/hug-a-developer/#comment-1459</link>
		<dc:creator>Ivan Nikolic</dc:creator>
		<pubDate>Mon, 01 Sep 2008 14:44:46 +0000</pubDate>
		<guid isPermaLink="false">http://zytzagoo.net/blog/?p=77#comment-1459</guid>
		<description>Ahhh :(</description>
		<content:encoded><![CDATA[<p>Ahhh :(</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Masters of Zango: Click OK to cancel by zytzagoo</title>
		<link>http://zytzagoo.net/blog/2008/08/30/masters-of-zango-click-ok-to-cancel/#comment-1456</link>
		<dc:creator>zytzagoo</dc:creator>
		<pubDate>Sun, 31 Aug 2008 11:13:29 +0000</pubDate>
		<guid isPermaLink="false">http://zytzagoo.net/blog/?p=74#comment-1456</guid>
		<description>Indeed. Using up all the rules from usability studies all over the web, for all the wrong reasons :)</description>
		<content:encoded><![CDATA[<p>Indeed. Using up all the rules from usability studies all over the web, for all the wrong reasons :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Masters of Zango: Click OK to cancel by njava</title>
		<link>http://zytzagoo.net/blog/2008/08/30/masters-of-zango-click-ok-to-cancel/#comment-1455</link>
		<dc:creator>njava</dc:creator>
		<pubDate>Sun, 31 Aug 2008 10:22:31 +0000</pubDate>
		<guid isPermaLink="false">http://zytzagoo.net/blog/?p=74#comment-1455</guid>
		<description>What he said. Brilliant!

Now, if you forget about how wrong this is for a second - I presume that the guy who figured this out must be tremendeously proud of himself. Hell, he probably got a big thumbs up from his boss aswell. What a mindset!</description>
		<content:encoded><![CDATA[<p>What he said. Brilliant!</p>
<p>Now, if you forget about how wrong this is for a second - I presume that the guy who figured this out must be tremendeously proud of himself. Hell, he probably got a big thumbs up from his boss aswell. What a mindset!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Masters of Zango: Click OK to cancel by seven</title>
		<link>http://zytzagoo.net/blog/2008/08/30/masters-of-zango-click-ok-to-cancel/#comment-1454</link>
		<dc:creator>seven</dc:creator>
		<pubDate>Sun, 31 Aug 2008 08:47:47 +0000</pubDate>
		<guid isPermaLink="false">http://zytzagoo.net/blog/?p=74#comment-1454</guid>
		<description>This is brilliant indeed.

I pressed OK just out of curiosity, and my ESET Security started blocking things and alerting me that something f*cked up is going on. :)</description>
		<content:encoded><![CDATA[<p>This is brilliant indeed.</p>
<p>I pressed OK just out of curiosity, and my ESET Security started blocking things and alerting me that something f*cked up is going on. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Goodbye Winamp. by Davor Peić</title>
		<link>http://zytzagoo.net/blog/2008/08/11/goodbye-winamp/#comment-1453</link>
		<dc:creator>Davor Peić</dc:creator>
		<pubDate>Fri, 22 Aug 2008 18:00:48 +0000</pubDate>
		<guid isPermaLink="false">http://zytzagoo.net/blog/?p=72#comment-1453</guid>
		<description>Hm, no one can recommend VLC player? beside of itunes that I love, VLC is the next player I could recommend, expecially for his streaming options. But, your choice is your choice right? :P</description>
		<content:encoded><![CDATA[<p>Hm, no one can recommend VLC player? beside of itunes that I love, VLC is the next player I could recommend, expecially for his streaming options. But, your choice is your choice right? :P</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Goodbye Winamp. by zytzagoo</title>
		<link>http://zytzagoo.net/blog/2008/08/11/goodbye-winamp/#comment-1452</link>
		<dc:creator>zytzagoo</dc:creator>
		<pubDate>Thu, 21 Aug 2008 12:56:10 +0000</pubDate>
		<guid isPermaLink="false">http://zytzagoo.net/blog/?p=72#comment-1452</guid>
		<description>&lt;a href="http://getsongbird.com/" rel="nofollow"&gt;Songbird&lt;/a&gt; also looks promising, haven't tried it yet though...</description>
		<content:encoded><![CDATA[<p><a href="http://getsongbird.com/" rel="nofollow">Songbird</a> also looks promising, haven&#8217;t tried it yet though&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Goodbye Winamp. by zytzagoo</title>
		<link>http://zytzagoo.net/blog/2008/08/11/goodbye-winamp/#comment-1451</link>
		<dc:creator>zytzagoo</dc:creator>
		<pubDate>Thu, 21 Aug 2008 12:54:43 +0000</pubDate>
		<guid isPermaLink="false">http://zytzagoo.net/blog/?p=72#comment-1451</guid>
		<description>Trying out &lt;a href="http://www.musikcube.com/" rel="nofollow"&gt;musikCube&lt;/a&gt; at the moment...</description>
		<content:encoded><![CDATA[<p>Trying out <a href="http://www.musikcube.com/" rel="nofollow">musikCube</a> at the moment&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Goodbye Winamp. by Marko</title>
		<link>http://zytzagoo.net/blog/2008/08/11/goodbye-winamp/#comment-1450</link>
		<dc:creator>Marko</dc:creator>
		<pubDate>Thu, 21 Aug 2008 11:33:25 +0000</pubDate>
		<guid isPermaLink="false">http://zytzagoo.net/blog/?p=72#comment-1450</guid>
		<description>I used Foobar and iTunes but something keeps me going back to the good 'ol Ljama Ass Winamp, maybe its because that I'm a keyboard control winamp addict... I dunno
I'm bookmarking your post to see what have you found that suits you.
Cheers</description>
		<content:encoded><![CDATA[<p>I used Foobar and iTunes but something keeps me going back to the good &#8216;ol Ljama Ass Winamp, maybe its because that I&#8217;m a keyboard control winamp addict&#8230; I dunno<br />
I&#8217;m bookmarking your post to see what have you found that suits you.<br />
Cheers</p>
]]></content:encoded>
	</item>
</channel>
</rss>
