<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dream☆Wing &#187; 正则</title>
	<atom:link href="http://www.dreamwing.org/tag/%e6%ad%a3%e5%88%99/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dreamwing.org</link>
	<description></description>
	<lastBuildDate>Sat, 05 Nov 2011 17:23:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Dips3:preg_replace可使用 /e 修正符将replacement参数当作PHP代码来执行</title>
		<link>http://www.dreamwing.org/php/dips_e_modifier_in_preg_replace_can_run_replacement_as_php.html</link>
		<comments>http://www.dreamwing.org/php/dips_e_modifier_in_preg_replace_can_run_replacement_as_php.html#comments</comments>
		<pubDate>Mon, 01 Sep 2008 19:27:17 +0000</pubDate>
		<dc:creator>Dream☆Wing</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Dips]]></category>
		<category><![CDATA[正则]]></category>

		<guid isPermaLink="false">http://www.dreamwing.org/?p=160</guid>
		<description><![CDATA[preg_replace可使用 /e 修正符将 replacement 参数当作 PHP 代码来执行（在适当的逆向引用替换完之后）。


$result['groupname'] = preg_replace('/^(\[(.+)\])/ie','get_theyear("\\2")',$result['groupname']);

function get_theyear($year)
{
	global $_SGLOBAL;
	$_SGLOBAL['groupyear'] = $year===NULL ? '' : $year;
	return '';
}

]]></description>
		<wfw:commentRss>http://www.dreamwing.org/php/dips_e_modifier_in_preg_replace_can_run_replacement_as_php.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

