<?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 on: PHP preg_match performance and overcoming maximum limit</title>
	<atom:link href="http://aleembawany.com/2009/02/05/php-preg_match-performance-and-overcoming-maximum-limit/feed/" rel="self" type="application/rss+xml" />
	<link>http://aleembawany.com/2009/02/05/php-preg_match-performance-and-overcoming-maximum-limit/</link>
	<description>tech, web and the rest</description>
	<lastBuildDate>Fri, 27 Jan 2012 13:37:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Ohana</title>
		<link>http://aleembawany.com/2009/02/05/php-preg_match-performance-and-overcoming-maximum-limit/comment-page-1/#comment-45013</link>
		<dc:creator>Ohana</dc:creator>
		<pubDate>Fri, 14 Oct 2011 08:47:48 +0000</pubDate>
		<guid isPermaLink="false">http://aleembawany.com/?p=479#comment-45013</guid>
		<description>&lt;p&gt;how can i limit the values of match?
ex: preg_match(&#039;/[.,]{1}/&#039;,$string);&lt;/p&gt;

&lt;p&gt;where {1} is the limit, and if is more then 1 then i can do something with it&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>how can i limit the values of match?<br />
ex: preg_match(&#8216;/[.,]{1}/&#8217;,$string);</p>
<p>where {1} is the limit, and if is more then 1 then i can do something with it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: meza</title>
		<link>http://aleembawany.com/2009/02/05/php-preg_match-performance-and-overcoming-maximum-limit/comment-page-1/#comment-29375</link>
		<dc:creator>meza</dc:creator>
		<pubDate>Sun, 18 Oct 2009 19:46:58 +0000</pubDate>
		<guid isPermaLink="false">http://aleembawany.com/?p=479#comment-29375</guid>
		<description>&lt;p&gt;if(strlen($subject)&gt;7000)
        ini_set(&#039;pcre.backtrack_limit&#039;,&#039;200000&#039;);&lt;/p&gt;

&lt;p&gt;This is just a wild observation, but I guess you&#039;ll have to find an optimal equation for increasing the limit. Don&#039;t get too happy thou, you could simply crash php by setting the limit too high.&lt;/p&gt;

&lt;p&gt;http://docs.php.net/manual/en/pcre.configuration.php&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>if(strlen($subject)&gt;7000)<br />
        ini_set(&#8216;pcre.backtrack_limit&#8217;,&#8217;200000&#8242;);</p>
<p>This is just a wild observation, but I guess you&#8217;ll have to find an optimal equation for increasing the limit. Don&#8217;t get too happy thou, you could simply crash php by setting the limit too high.</p>
<p><a href="http://docs.php.net/manual/en/pcre.configuration.php" rel="nofollow">http://docs.php.net/manual/en/pcre.configuration.php</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wells</title>
		<link>http://aleembawany.com/2009/02/05/php-preg_match-performance-and-overcoming-maximum-limit/comment-page-1/#comment-27964</link>
		<dc:creator>Wells</dc:creator>
		<pubDate>Mon, 11 May 2009 19:56:03 +0000</pubDate>
		<guid isPermaLink="false">http://aleembawany.com/?p=479#comment-27964</guid>
		<description>&lt;p&gt;Thanks for this. I just spent 45 minutes wondering why preg_match_all() started failing on a much bigger string- with no indication! Argh.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Thanks for this. I just spent 45 minutes wondering why preg_match_all() started failing on a much bigger string- with no indication! Argh.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: awahid</title>
		<link>http://aleembawany.com/2009/02/05/php-preg_match-performance-and-overcoming-maximum-limit/comment-page-1/#comment-26563</link>
		<dc:creator>awahid</dc:creator>
		<pubDate>Tue, 03 Mar 2009 05:53:11 +0000</pubDate>
		<guid isPermaLink="false">http://aleembawany.com/?p=479#comment-26563</guid>
		<description>Well I try to avoid regex as much as possible, the reason behind it is that they are heavy and use more CPU.</description>
		<content:encoded><![CDATA[<p>Well I try to avoid regex as much as possible, the reason behind it is that they are heavy and use more CPU.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
