<?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>「在.htaccess當中可以使用的Regular Expression - 1」的迴響</title>
	<atom:link href="http://www.refly.net/blog/2007/11/05/%e5%9c%a8htaccess%e7%95%b6%e4%b8%ad%e5%8f%af%e4%bb%a5%e4%bd%bf%e7%94%a8%e7%9a%84regular-expression-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.refly.net/blog/2007/11/05/%e5%9c%a8htaccess%e7%95%b6%e4%b8%ad%e5%8f%af%e4%bb%a5%e4%bd%bf%e7%94%a8%e7%9a%84regular-expression-1/</link>
	<description>Blog,是讓自己快樂的工具.</description>
	<pubDate>Sat, 22 Nov 2008 03:51:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>作者：jaceju</title>
		<link>http://www.refly.net/blog/2007/11/05/%e5%9c%a8htaccess%e7%95%b6%e4%b8%ad%e5%8f%af%e4%bb%a5%e4%bd%bf%e7%94%a8%e7%9a%84regular-expression-1/#comment-876</link>
		<dc:creator>jaceju</dc:creator>
		<pubDate>Mon, 05 Nov 2007 10:13:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.refly.net/blog/?p=96#comment-876</guid>
		<description>:) 別這麼說啦~~我也在這裡得到很多寶貴的知識。大家一起成長囉~~</description>
		<content:encoded><![CDATA[<p> <img src='http://www.refly.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> 別這麼說啦~~我也在這裡得到很多寶貴的知識。大家一起成長囉~~</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：refly</title>
		<link>http://www.refly.net/blog/2007/11/05/%e5%9c%a8htaccess%e7%95%b6%e4%b8%ad%e5%8f%af%e4%bb%a5%e4%bd%bf%e7%94%a8%e7%9a%84regular-expression-1/#comment-875</link>
		<dc:creator>refly</dc:creator>
		<pubDate>Mon, 05 Nov 2007 09:39:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.refly.net/blog/?p=96#comment-875</guid>
		<description>對不起,我沒考慮到這邊Q_Q

原文已經修改,感謝jaceju大~</description>
		<content:encoded><![CDATA[<p>對不起,我沒考慮到這邊Q_Q</p>
<p>原文已經修改,感謝jaceju大~</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：jaceju</title>
		<link>http://www.refly.net/blog/2007/11/05/%e5%9c%a8htaccess%e7%95%b6%e4%b8%ad%e5%8f%af%e4%bb%a5%e4%bd%bf%e7%94%a8%e7%9a%84regular-expression-1/#comment-877</link>
		<dc:creator>jaceju</dc:creator>
		<pubDate>Mon, 05 Nov 2007 09:25:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.refly.net/blog/?p=96#comment-877</guid>
		<description>* 怎麼會沒意義呢？

例如我幾個字串是這樣：

1. "/xxx"
2. "/xxx/123456"

條件是第一個字串如果沒給數字，就預設給 0 ；不然的話就把後面的數字抓進來用。

這時候可以這樣比對：

^\/xxx\/?(\d*)$

這時候小括號得到的就是我們要的數字了。

不曉得版主所說的沒意義是指？</description>
		<content:encoded><![CDATA[<p>* 怎麼會沒意義呢？</p>
<p>例如我幾個字串是這樣：</p>
<p>1. &#8220;/xxx&#8221;<br />
2. &#8220;/xxx/123456&#8243;</p>
<p>條件是第一個字串如果沒給數字，就預設給 0 ；不然的話就把後面的數字抓進來用。</p>
<p>這時候可以這樣比對：</p>
<p>^\/xxx\/?(\d*)$</p>
<p>這時候小括號得到的就是我們要的數字了。</p>
<p>不曉得版主所說的沒意義是指？</p>
]]></content:encoded>
	</item>
</channel>
</rss>
