<?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>「在.htaccess當中可以使用的Regular Expression &#8211; 1」的迴響</title>
	<atom:link href="http://refly.net/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://refly.net/blogs/%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>just another informational blog</description>
	<lastBuildDate>Mon, 12 Sep 2011 11:39:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>由：jaceju</title>
		<link>http://refly.net/blogs/%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-page-1/#comment-47</link>
		<dc:creator>jaceju</dc:creator>
		<pubDate>Mon, 05 Nov 2007 10:13:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.refly.net/?p=44#comment-47</guid>
		<description>:) 別這麼說啦~~我也在這裡得到很多寶貴的知識。大家一起成長囉~~</description>
		<content:encoded><![CDATA[<p> <img src='http://refly.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  別這麼說啦~~我也在這裡得到很多寶貴的知識。大家一起成長囉~~</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：refly</title>
		<link>http://refly.net/blogs/%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-page-1/#comment-46</link>
		<dc:creator>refly</dc:creator>
		<pubDate>Mon, 05 Nov 2007 09:39:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.refly.net/?p=44#comment-46</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://refly.net/blogs/%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-page-1/#comment-48</link>
		<dc:creator>jaceju</dc:creator>
		<pubDate>Mon, 05 Nov 2007 09:25:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.refly.net/?p=44#comment-48</guid>
		<description>* 怎麼會沒意義呢？

例如我幾個字串是這樣：

1. &quot;/xxx&quot;
2. &quot;/xxx/123456&quot;

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

這時候可以這樣比對：

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

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

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

