<?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>最优良人 &#187; 正则</title>
	<atom:link href="http://www.zui88.com/view-tag/%e6%ad%a3%e5%88%99/feed" rel="self" type="application/rss+xml" />
	<link>http://www.zui88.com/blog</link>
	<description>中山php&#124;最优网络</description>
	<lastBuildDate>Mon, 13 May 2013 04:56:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>php正则匹配时常用到的模式修正符</title>
		<link>http://www.zui88.com/blog/view-118.html</link>
		<comments>http://www.zui88.com/blog/view-118.html#comments</comments>
		<pubDate>Sun, 14 Aug 2011 17:19:08 +0000</pubDate>
		<dc:creator>lin</dc:creator>
				<category><![CDATA[网站前端]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[正则]]></category>

		<guid isPermaLink="false">http://www.zui88.com/blog/?p=118</guid>
		<description><![CDATA[PHP简单的模版引擎主要的原理是使用preg_replace对模板的内容进行替换，替换成可执行的php语句然后写入缓存文本，再include进来执行。 在使用preg_replace时常用到的模式修正符有： e：$replacement 的字符串将被当作php语句执行 U：禁止贪婪匹配 只跟踪到最近的一个匹配符并结束， m：在匹配首内容或者尾内容时候采用多行识别匹配 s：模式中的圆点元字符（.）匹配所有的字符，包括换行]]></description>
			<content:encoded><![CDATA[<div style="line-height: 25px;">
<p>PHP简单的模版引擎主要的原理是使用preg_replace对模板的内容进行替换，替换成可执行的php语句然后写入缓存文本，再include进来执行。</p>
<p>在使用preg_replace时常用到的模式修正符有：</p>
<p>e：$replacement 的字符串将被当作php语句执行 </p>
<p>U：禁止贪婪匹配 只跟踪到最近的一个匹配符并结束，</p>
<p>m：在匹配首内容或者尾内容时候采用多行识别匹配</p>
<p>s：模式中的圆点元字符（.）匹配所有的字符，包括换行</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.zui88.com/blog/view-118.html/feed</wfw:commentRss>
		<slash:comments>267</slash:comments>
		</item>
	</channel>
</rss>
