Re: Catch line indetation

From: Date: Mon, 31 Oct 2016 13:06:52 +0000
Subject: Re: Catch line indetation
References: 1 2 3 4 5 6 7 8  Groups: php.general 
Request: Send a blank email to php-general+get-325806@lists.php.net to get a copy of this message
On 29.10.2016 at 05:17, German Geek wrote: > Note also, that the regex here might be compiled every time, in which case > regexes are the clear winner. I think PHP might cache the compiled regex > though. Yes, by default up to 4096 compiled regex patterns are cached, see <https://github.com/php/php-src/blob/PHP-7.0.13/ext/pcre/php_pcre.c#L45>ff. With regard to the performance, I presume that prec.jit makes a difference (depending on the complexity of the pattern and the subject length). -- Christoph M. Becker

« previous php.general (#325806) next »