<?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 for 我爱正则表达式</title>
	<atom:link href="http://iregex.org/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://iregex.org</link>
	<description>原创、翻译、转载关于正则表达式的文章</description>
	<lastBuildDate>Fri, 18 May 2012 03:20:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on 复杂的正则表达式应该如何构造 by zyz</title>
		<link>http://iregex.org/blog/craft-complex-regex.html/comment-page-1#comment-23117</link>
		<dc:creator>zyz</dc:creator>
		<pubDate>Fri, 18 May 2012 03:20:16 +0000</pubDate>
		<guid isPermaLink="false">http://iregex.org/?p=138#comment-23117</guid>
		<description>修正回复:
&lt;code lang=&quot;javascript&quot;&gt;
   看了楼主文章,的确收益很多,虽然很久没更新,但也不难看出楼主的用心.

一直困扰着我的一个问题,麻烦楼主楼主帮忙解释一下.

现在我要匹配出在页面中存在的并且有属性为imageid的img的src值
如:从&lt;img image=&quot;1234&quot; src=&quot;www.xxxxxx.xxx&quot;/&gt;中取出www.xxxxxx.xxx

但是页面中还存在其他的img标签
如:&lt;img src=&quot;www.xx.xx&quot;/&gt;或者&lt;img id=&quot;123&quot; src=&quot;www.xx.xx&quot;/&gt;
诸如这样的结果是我不想要的.

我在网络找到了这么一个表达式:

(?&lt;=&lt;img(?:(?!id=)[\s\S])*src=&quot;&quot;)[^&quot;&quot;]+(?=&quot;&quot;)

但是一直不明白其中的(?:(?!id=)[\s\S]),既对(?:exp)不明白看了教程也不能对其很好的理解.
并且上面的表达式是有错误的.,望楼主指正.
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>修正回复:</p>
<div class="codecolorer-container javascript mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp;看了楼主文章<span style="color: #339933;">,</span>的确收益很多<span style="color: #339933;">,</span>虽然很久没更新<span style="color: #339933;">,</span>但也不难看出楼主的用心.<br />
<br />
一直困扰着我的一个问题<span style="color: #339933;">,</span>麻烦楼主楼主帮忙解释一下.<br />
<br />
现在我要匹配出在页面中存在的并且有属性为imageid的img的src值<br />
如<span style="color: #339933;">:</span>从<span style="color: #339933;">&lt;</span>img image<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;1234&quot;</span> src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;www.xxxxxx.xxx&quot;</span><span style="color: #339933;">/&gt;</span>中取出www.<span style="color: #660066;">xxxxxx</span>.<span style="color: #660066;">xxx</span><br />
<br />
但是页面中还存在其他的img标签<br />
如<span style="color: #339933;">:&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;www.xx.xx&quot;</span><span style="color: #339933;">/&gt;</span>或者<span style="color: #339933;">&lt;</span>img id<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;123&quot;</span> src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;www.xx.xx&quot;</span><span style="color: #339933;">/&gt;</span><br />
诸如这样的结果是我不想要的.<br />
<br />
我在网络找到了这么一个表达式<span style="color: #339933;">:</span><br />
<br />
<span style="color: #009900;">&#40;</span><span style="color: #339933;">?&lt;=&lt;</span>img<span style="color: #009900;">&#40;</span><span style="color: #339933;">?:</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">?!</span>id<span style="color: #339933;">=</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span>\s\S<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span>src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #339933;">^</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">+</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">?=</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><br />
<br />
但是一直不明白其中的<span style="color: #009900;">&#40;</span><span style="color: #339933;">?:</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">?!</span>id<span style="color: #339933;">=</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span>\s\S<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>既对<span style="color: #009900;">&#40;</span><span style="color: #339933;">?:</span>exp<span style="color: #009900;">&#41;</span>不明白看了教程也不能对其很好的理解.<br />
并且上面的表达式是有错误的.<span style="color: #339933;">,</span>望楼主指正.</div></td></tr></tbody></table></div>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 复杂的正则表达式应该如何构造 by zyz</title>
		<link>http://iregex.org/blog/craft-complex-regex.html/comment-page-1#comment-23116</link>
		<dc:creator>zyz</dc:creator>
		<pubDate>Fri, 18 May 2012 03:18:39 +0000</pubDate>
		<guid isPermaLink="false">http://iregex.org/?p=138#comment-23116</guid>
		<description>看了楼主文章,的确收益很多,虽然很久没更新,但也不难看出楼主的用心.

一直困扰着我的一个问题,麻烦楼主楼主帮忙解释一下.

现在我要匹配出在页面中存在的并且有属性为imageid的img的src值
如:从中取出www.xxxxxx.xxx

但是页面中还存在其他的img标签
如:或者
诸如这样的结果是我不想要的.

我在网络找到了这么一个表达式:

(?&lt;=&lt;img(?:(?!id=)[\s\S])*src=&quot;&quot;)[^&quot;&quot;]+(?=&quot;&quot;)

但是一直不明白其中的(?:(?!id=)[\s\S]),既对(?:exp)不明白看了教程也不能对其很好的理解.
并且上面的表达式是有错误的.,望楼主执政.</description>
		<content:encoded><![CDATA[<p>看了楼主文章,的确收益很多,虽然很久没更新,但也不难看出楼主的用心.</p>
<p>一直困扰着我的一个问题,麻烦楼主楼主帮忙解释一下.</p>
<p>现在我要匹配出在页面中存在的并且有属性为imageid的img的src值<br />
如:从中取出www.xxxxxx.xxx</p>
<p>但是页面中还存在其他的img标签<br />
如:或者<br />
诸如这样的结果是我不想要的.</p>
<p>我在网络找到了这么一个表达式:</p>
<p>(?&lt;=&lt;img(?:(?!id=)[\s\S])*src=&quot;&quot;)[^&quot;&quot;]+(?=&quot;&quot;)</p>
<p>但是一直不明白其中的(?:(?!id=)[\s\S]),既对(?:exp)不明白看了教程也不能对其很好的理解.<br />
并且上面的表达式是有错误的.,望楼主执政.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 《精通正则表达式》英文第三版PDF提供下载 by ddd</title>
		<link>http://iregex.org/blog/mastering-regular-expressions-3rd-pdf-ebook-download.html/comment-page-1#comment-23030</link>
		<dc:creator>ddd</dc:creator>
		<pubDate>Thu, 17 May 2012 02:06:16 +0000</pubDate>
		<guid isPermaLink="false">http://iregex.org/?p=17#comment-23030</guid>
		<description>要是有中文版就好了，英文读这个有点困难，万一产生歧义就麻烦了。</description>
		<content:encoded><![CDATA[<p>要是有中文版就好了，英文读这个有点困难，万一产生歧义就麻烦了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 较安全的rm脚本 by 蘑菇街首页</title>
		<link>http://iregex.org/blog/safer-rm-command.html/comment-page-1#comment-22814</link>
		<dc:creator>蘑菇街首页</dc:creator>
		<pubDate>Mon, 14 May 2012 09:26:37 +0000</pubDate>
		<guid isPermaLink="false">http://iregex.org/?p=155#comment-22814</guid>
		<description>分享啦 不错</description>
		<content:encoded><![CDATA[<p>分享啦 不错</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 格式化HTML标签缩进 by w</title>
		<link>http://iregex.org/blog/html-tag-indentation.html/comment-page-1#comment-22780</link>
		<dc:creator>w</dc:creator>
		<pubDate>Sun, 13 May 2012 13:45:52 +0000</pubDate>
		<guid isPermaLink="false">http://iregex.org/?p=137#comment-22780</guid>
		<description>本来打算使用HTMLParser来完成的</description>
		<content:encoded><![CDATA[<p>本来打算使用HTMLParser来完成的</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 较安全的rm脚本 by 爱早起</title>
		<link>http://iregex.org/blog/safer-rm-command.html/comment-page-1#comment-22344</link>
		<dc:creator>爱早起</dc:creator>
		<pubDate>Sun, 06 May 2012 13:37:02 +0000</pubDate>
		<guid isPermaLink="false">http://iregex.org/?p=155#comment-22344</guid>
		<description>博主要经常更新啊，呵呵</description>
		<content:encoded><![CDATA[<p>博主要经常更新啊，呵呵</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on concise perl re table by xebfkzej</title>
		<link>http://iregex.org/blog/concise-perl-re-table.html/comment-page-1#comment-21541</link>
		<dc:creator>xebfkzej</dc:creator>
		<pubDate>Tue, 24 Apr 2012 14:34:28 +0000</pubDate>
		<guid isPermaLink="false">http://iregex.org/blog/concise-perl-re-table.html#comment-21541</guid>
		<description>LDWJQVfZbCxBDxh [url=http://www.coach-outletseshop.com]Coach Outlet Store[/url] XbApyzDNr</description>
		<content:encoded><![CDATA[<p>LDWJQVfZbCxBDxh [url=http://www.coach-outletseshop.com]Coach Outlet Store[/url] XbApyzDNr</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on About by xxzj990</title>
		<link>http://iregex.org/about/comment-page-1#comment-21404</link>
		<dc:creator>xxzj990</dc:creator>
		<pubDate>Sun, 22 Apr 2012 08:54:17 +0000</pubDate>
		<guid isPermaLink="false">http://iregex.org/?page_id=2#comment-21404</guid>
		<description>你好，本人是一个饭否爱好者，也是黑莓爱好者。最近在给黑莓写一个饭否的客户端，因为以前没有写过类似的东西，现在碰到一个小问题想请教下。

关于饭否的API，用Post请求发送消息的话，客户端是不是必须得到饭否官方的认证才行？因为在写发消息模块时老是400错误。

如果是，如何申请认证？谢谢了。</description>
		<content:encoded><![CDATA[<p>你好，本人是一个饭否爱好者，也是黑莓爱好者。最近在给黑莓写一个饭否的客户端，因为以前没有写过类似的东西，现在碰到一个小问题想请教下。</p>
<p>关于饭否的API，用Post请求发送消息的话，客户端是不是必须得到饭否官方的认证才行？因为在写发消息模块时老是400错误。</p>
<p>如果是，如何申请认证？谢谢了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 较安全的rm脚本 by rex</title>
		<link>http://iregex.org/blog/safer-rm-command.html/comment-page-1#comment-20127</link>
		<dc:creator>rex</dc:creator>
		<pubDate>Fri, 30 Mar 2012 12:55:16 +0000</pubDate>
		<guid isPermaLink="false">http://iregex.org/?p=155#comment-20127</guid>
		<description>谢谢！basename 的确是更靠谱的方案。
mount point 的观点很好。我思考一下。</description>
		<content:encoded><![CDATA[<p>谢谢！basename 的确是更靠谱的方案。<br />
mount point 的观点很好。我思考一下。</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 巧解 JavaScript 中的嵌套替换 by EluneKwok</title>
		<link>http://iregex.org/blog/javascript-loo-replace.html/comment-page-1#comment-19027</link>
		<dc:creator>EluneKwok</dc:creator>
		<pubDate>Mon, 05 Mar 2012 19:50:50 +0000</pubDate>
		<guid isPermaLink="false">http://iregex.org/?p=144#comment-19027</guid>
		<description>&lt;code lang=&quot;javascript&quot;&gt;
alert(sourcestr.replace(/&lt;table.*?\/table&gt;/ig, function($1){return $1.replace(/&lt;p&gt;/ig,&quot;&lt;br&gt;&quot;)}));
&lt;/code&gt;
神码啊！！！（注意：不是神马）
果然牛人！！</description>
		<content:encoded><![CDATA[<div class="codecolorer-container javascript mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span>sourcestr.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/&lt;table.*?\/table&gt;/ig</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>$1<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #000066; font-weight: bold;">return</span> $1.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/&lt;p&gt;/ig</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;&lt;br&gt;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>神码啊！！！（注意：不是神马）<br />
果然牛人！！</p>
]]></content:encoded>
	</item>
</channel>
</rss>

