<?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: 统计重复文本行的两种方法</title>
	<atom:link href="http://iregex.org/blog/get-duplicated-lines.html/feed" rel="self" type="application/rss+xml" />
	<link>http://iregex.org/blog/get-duplicated-lines.html</link>
	<description>原创、翻译、转载关于正则表达式的文章</description>
	<lastBuildDate>Fri, 30 Jul 2010 03:24:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: rex</title>
		<link>http://iregex.org/blog/get-duplicated-lines.html/comment-page-1#comment-2726</link>
		<dc:creator>rex</dc:creator>
		<pubDate>Wed, 10 Feb 2010 16:37:36 +0000</pubDate>
		<guid isPermaLink="false">http://iregex.org/?p=77#comment-2726</guid>
		<description>我记得测试过了呀～等我再测试一次。</description>
		<content:encoded><![CDATA[<p>我记得测试过了呀～等我再测试一次。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rex</title>
		<link>http://iregex.org/blog/get-duplicated-lines.html/comment-page-1#comment-2725</link>
		<dc:creator>rex</dc:creator>
		<pubDate>Wed, 10 Feb 2010 16:36:29 +0000</pubDate>
		<guid isPermaLink="false">http://iregex.org/?p=77#comment-2725</guid>
		<description>hash版的代码和思路看起来都比较简洁，算做是中规中矩的路子；regex的就有些geek范儿了。</description>
		<content:encoded><![CDATA[<p>hash版的代码和思路看起来都比较简洁，算做是中规中矩的路子；regex的就有些geek范儿了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 百毒博客</title>
		<link>http://iregex.org/blog/get-duplicated-lines.html/comment-page-1#comment-2721</link>
		<dc:creator>百毒博客</dc:creator>
		<pubDate>Wed, 10 Feb 2010 14:25:15 +0000</pubDate>
		<guid isPermaLink="false">http://iregex.org/?p=77#comment-2721</guid>
		<description>博主正解，哈希算法比較好，個人認為。</description>
		<content:encoded><![CDATA[<p>博主正解，哈希算法比較好，個人認為。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lambdacpp</title>
		<link>http://iregex.org/blog/get-duplicated-lines.html/comment-page-1#comment-2719</link>
		<dc:creator>lambdacpp</dc:creator>
		<pubDate>Wed, 10 Feb 2010 12:53:26 +0000</pubDate>
		<guid isPermaLink="false">http://iregex.org/?p=77#comment-2719</guid>
		<description>但是如果加了边界检测就匹配不了了:(</description>
		<content:encoded><![CDATA[<p>但是如果加了边界检测就匹配不了了:(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kid</title>
		<link>http://iregex.org/blog/get-duplicated-lines.html/comment-page-1#comment-2717</link>
		<dc:creator>Kid</dc:creator>
		<pubDate>Wed, 10 Feb 2010 07:03:15 +0000</pubDate>
		<guid isPermaLink="false">http://iregex.org/?p=77#comment-2717</guid>
		<description>Python版
&gt;&gt;&gt;d = {}
&gt;&gt;&gt;for c in open(r&#039;data.txt&#039;):
           d[c] = d.get(c, 0) + 1

:D</description>
		<content:encoded><![CDATA[<p>Python版<br />
&gt;&gt;&gt;d = {}<br />
&gt;&gt;&gt;for c in open(r&#8217;data.txt&#8217;):<br />
           d[c] = d.get(c, 0) + 1</p>
<p> <img src='http://iregex.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rex</title>
		<link>http://iregex.org/blog/get-duplicated-lines.html/comment-page-1#comment-2712</link>
		<dc:creator>rex</dc:creator>
		<pubDate>Mon, 08 Feb 2010 01:30:24 +0000</pubDate>
		<guid isPermaLink="false">http://iregex.org/?p=77#comment-2712</guid>
		<description>谢谢提醒。已经修改。\1的两边加上了边界检查。</description>
		<content:encoded><![CDATA[<p>谢谢提醒。已经修改。\1的两边加上了边界检查。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lambdacpp</title>
		<link>http://iregex.org/blog/get-duplicated-lines.html/comment-page-1#comment-2706</link>
		<dc:creator>lambdacpp</dc:creator>
		<pubDate>Sun, 07 Feb 2010 12:05:32 +0000</pubDate>
		<guid isPermaLink="false">http://iregex.org/?p=77#comment-2706</guid>
		<description>dup_re.pl 有点问题哦？
$ cat e
1
12
123
1234
12345

$ cat e &#124; ./rep_re.pl 
5times:	1
4times:	2
3times:	3
2times:	4</description>
		<content:encoded><![CDATA[<p>dup_re.pl 有点问题哦？<br />
$ cat e<br />
1<br />
12<br />
123<br />
1234<br />
12345</p>
<p>$ cat e | ./rep_re.pl<br />
5times:	1<br />
4times:	2<br />
3times:	3<br />
2times:	4</p>
]]></content:encoded>
	</item>
</channel>
</rss>
