New extension: re2

From: Date: Sat, 18 Jun 2011 18:50:06 +0000
Subject: New extension: re2
Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-8371@lists.php.net to get a copy of this message
Hi, I've put together an extension which wraps RE2 - an alternative to PCRE which can be much faster and be constrained to memory limits, at the expense of backreferences and generalized zero-width assertions. The RE2 homepage is at http://code.google.com/p/re2/ The extension mirrors ext/pcre's functions, so aside from the syntax differences it should be a drop-in replacement. It also provides a couple of classes. The RE2 class represents a compiled pattern, and can be passed to any of the matching functions instead of a string, to save the compilation time when used repeatedly. The RE2_Options class allows some options to be set per pattern. The code can be found at: https://github.com/arraypad/php-re2 I'd like to publish this extension in PECL if it looks alright to everyone, and I'd appreciate any feedback. Regards, Arpad

« previous php.pecl.dev (#8371) next »