<?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: A simple diff algorithm in PHP</title>
	<atom:link href="http://paulbutler.org/archives/a-simple-diff-algorithm-in-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://paulbutler.org/archives/a-simple-diff-algorithm-in-php/</link>
	<description></description>
	<lastBuildDate>Sun, 16 Oct 2011 08:56:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Aviram</title>
		<link>http://paulbutler.org/archives/a-simple-diff-algorithm-in-php/#comment-40085</link>
		<dc:creator>Aviram</dc:creator>
		<pubDate>Tue, 11 Oct 2011 15:29:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulbutler.org/archives/a-simple-diff-algorithm-in-php/#comment-40085</guid>
		<description>Great job Paul! you really made my life easier.
One question, I&#039;ve been trying to change your code in a way that if someone changes the location of some text in the new version (cuts and pasts) it will not count as a change. but I&#039;m having trouble to understand who this can be done using your current implementation of diff.

could you please help me?

Thanks!</description>
		<content:encoded><![CDATA[<p>Great job Paul! you really made my life easier.<br />
One question, I&#8217;ve been trying to change your code in a way that if someone changes the location of some text in the new version (cuts and pasts) it will not count as a change. but I&#8217;m having trouble to understand who this can be done using your current implementation of diff.</p>
<p>could you please help me?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian</title>
		<link>http://paulbutler.org/archives/a-simple-diff-algorithm-in-php/#comment-39493</link>
		<dc:creator>Christian</dc:creator>
		<pubDate>Fri, 07 Oct 2011 11:13:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulbutler.org/archives/a-simple-diff-algorithm-in-php/#comment-39493</guid>
		<description>Nice code, thanks for this part, especially the htmlDiff is nice!

@Jeff: You need to split the text using another algorithm than explode(), f.e. preg_split(), but it&#039;s not that simple to implode those words again, because you need the &quot;word-split&quot; character again. Maybe you could use a word iterator, but this would produce a huge amount of additional code.

Cheers from Germany,
Chris</description>
		<content:encoded><![CDATA[<p>Nice code, thanks for this part, especially the htmlDiff is nice!</p>
<p>@Jeff: You need to split the text using another algorithm than explode(), f.e. preg_split(), but it&#8217;s not that simple to implode those words again, because you need the &#8220;word-split&#8221; character again. Maybe you could use a word iterator, but this would produce a huge amount of additional code.</p>
<p>Cheers from Germany,<br />
Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt</title>
		<link>http://paulbutler.org/archives/a-simple-diff-algorithm-in-php/#comment-37605</link>
		<dc:creator>matt</dc:creator>
		<pubDate>Tue, 13 Sep 2011 09:13:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulbutler.org/archives/a-simple-diff-algorithm-in-php/#comment-37605</guid>
		<description>Hi Paul.

First, I would like to thank you for publishing this.  I have not been able to make this work and your solution is very helpful to me.

However, I am having performance issues with this on very large strings, and I cannot figure out how to address them.  In the code comments, you said that there are ways to address these issues, and I was wondering, would you would mind sharing them?</description>
		<content:encoded><![CDATA[<p>Hi Paul.</p>
<p>First, I would like to thank you for publishing this.  I have not been able to make this work and your solution is very helpful to me.</p>
<p>However, I am having performance issues with this on very large strings, and I cannot figure out how to address them.  In the code comments, you said that there are ways to address these issues, and I was wondering, would you would mind sharing them?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yarco</title>
		<link>http://paulbutler.org/archives/a-simple-diff-algorithm-in-php/#comment-35937</link>
		<dc:creator>yarco</dc:creator>
		<pubDate>Tue, 23 Aug 2011 01:09:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulbutler.org/archives/a-simple-diff-algorithm-in-php/#comment-35937</guid>
		<description>oh, my version is line diff</description>
		<content:encoded><![CDATA[<p>oh, my version is line diff</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yarco</title>
		<link>http://paulbutler.org/archives/a-simple-diff-algorithm-in-php/#comment-35935</link>
		<dc:creator>yarco</dc:creator>
		<pubDate>Tue, 23 Aug 2011 01:00:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulbutler.org/archives/a-simple-diff-algorithm-in-php/#comment-35935</guid>
		<description>I cant use it...dont why, continue saying $maxlen doest define. So i make one by myself, 
here it is:
http://bbish.net/05toolsproducts/66/php-simple-diff
I dont even know it is ok or not, but seems good.</description>
		<content:encoded><![CDATA[<p>I cant use it&#8230;dont why, continue saying $maxlen doest define. So i make one by myself,<br />
here it is:<br />
<a href="http://bbish.net/05toolsproducts/66/php-simple-diff" rel="nofollow">http://bbish.net/05toolsproducts/66/php-simple-diff</a><br />
I dont even know it is ok or not, but seems good.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://paulbutler.org/archives/a-simple-diff-algorithm-in-php/#comment-28935</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Sat, 11 Jun 2011 05:30:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulbutler.org/archives/a-simple-diff-algorithm-in-php/#comment-28935</guid>
		<description>I&#039;ve been trying to modify this to include differences in punctuation:

Currently a diff between &quot;I think, therefore&quot; and &quot;I think therefore&quot; will produce:

I &lt;del&gt;think,&lt;/del&gt;think therefore

I would like it to produce:

I think&lt;del&gt;,&lt;/del&gt; therefore

Any thoughts on how to achieve this? I messed around with code referenced by Peter West above but couldn&#039;t get this to work.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been trying to modify this to include differences in punctuation:</p>
<p>Currently a diff between &#8220;I think, therefore&#8221; and &#8220;I think therefore&#8221; will produce:</p>
<p>I <del>think,</del>think therefore</p>
<p>I would like it to produce:</p>
<p>I think<del>,</del> therefore</p>
<p>Any thoughts on how to achieve this? I messed around with code referenced by Peter West above but couldn&#8217;t get this to work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: String diff on punctuation: is preg_split the answer? &#124; Coding Answers</title>
		<link>http://paulbutler.org/archives/a-simple-diff-algorithm-in-php/#comment-28887</link>
		<dc:creator>String diff on punctuation: is preg_split the answer? &#124; Coding Answers</dc:creator>
		<pubDate>Fri, 10 Jun 2011 09:53:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulbutler.org/archives/a-simple-diff-algorithm-in-php/#comment-28887</guid>
		<description>[...] http://piratepad.net/IY48xXzsys (modified by Peter West, from the original here: http://paulbutler.org/archives/a-simple-diff-algorithm-in-php/) [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://piratepad.net/IY48xXzsys" rel="nofollow">http://piratepad.net/IY48xXzsys</a> (modified by Peter West, from the original here: <a href="http://paulbutler.org/archives/a-simple-diff-algorithm-in-php/)" rel="nofollow">http://paulbutler.org/archives/a-simple-diff-algorithm-in-php/)</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mario</title>
		<link>http://paulbutler.org/archives/a-simple-diff-algorithm-in-php/#comment-26778</link>
		<dc:creator>Mario</dc:creator>
		<pubDate>Mon, 16 May 2011 09:59:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulbutler.org/archives/a-simple-diff-algorithm-in-php/#comment-26778</guid>
		<description>Works great and saved me a lot of time. Thanks!</description>
		<content:encoded><![CDATA[<p>Works great and saved me a lot of time. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrea</title>
		<link>http://paulbutler.org/archives/a-simple-diff-algorithm-in-php/#comment-25475</link>
		<dc:creator>Andrea</dc:creator>
		<pubDate>Mon, 25 Apr 2011 12:27:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulbutler.org/archives/a-simple-diff-algorithm-in-php/#comment-25475</guid>
		<description>Man thanks your function is pretty good.

But why you don&#039;t add those fix ($ret=&#039;&#039; and few others) to kill the notices?


Thanks al ot</description>
		<content:encoded><![CDATA[<p>Man thanks your function is pretty good.</p>
<p>But why you don&#8217;t add those fix ($ret=&#8221; and few others) to kill the notices?</p>
<p>Thanks al ot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bob</title>
		<link>http://paulbutler.org/archives/a-simple-diff-algorithm-in-php/#comment-22811</link>
		<dc:creator>bob</dc:creator>
		<pubDate>Wed, 23 Mar 2011 01:01:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulbutler.org/archives/a-simple-diff-algorithm-in-php/#comment-22811</guid>
		<description>Actually I figured out the problem is that an example like &quot;end\n\nfirst&quot; is treated as one &quot;word&quot;.  I first need to &quot;wrap&quot; the decline characters in spaces.

So &quot;end \n \n first&quot;.  Then after the check just remove the spaces.</description>
		<content:encoded><![CDATA[<p>Actually I figured out the problem is that an example like &#8220;end\n\nfirst&#8221; is treated as one &#8220;word&#8221;.  I first need to &#8220;wrap&#8221; the decline characters in spaces.</p>
<p>So &#8220;end \n \n first&#8221;.  Then after the check just remove the spaces.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

