The PCRE library is a set of functions that implement regular expression pattern matching using the same syntax and semantics as Perl 5, with just a few differences. PCRE is used by many programs, including Exim, Postfix, and PHP.
| Tags | Software Development Libraries Text Processing |
|---|---|
| Operating Systems | OS Independent |
| Implementation | C |
Recent releases


Changes: A number of bugs and untidinesses have been fixed. One or two small functional additions have been made, including the ability to set UTF-8 mode from within the pattern.


Changes: The minor security fix in this release is an overrun for certain patterns. Other bugs are also fixed. There is a performance enhancement for Unicode character property tests.


Changes: Mostly bugfixes. Some extra options have been added to pcregrep, and there is additional Oniguruma and JavaScript compatibility.


Changes: This release fixes a bug that caused a memory overrun if, in UTF-8 mode, a character class with a very large number of non-ASCII characters was supplied. There are a couple of minor cleanups in the C++ code. The pcredemo demonstration program is no longer built automatically. The only other significant change is some maintenance work on the CMake build files, to bring them up-to-date with the latest PCRE features.


Changes: Several bugs in the basic library have been fixed. The ability to link pcregrep with libz and/or libbz2, and the ability to link pcretest with libreadline, have been added.
- All comments
Recent commentswhat about the recursion bug affecting php (probably all apps using pcre)
Are bugs like RH bug #133891 (http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=133891), PHP bug #24460 (http://bugs.php.net/bug.php?id=24460), PHP bug #26171 (http://bugs.php.net/bug.php?id=26171) and PHP bug #27070 (http://bugs.php.net/bug.php?id=27070) going to be addressed?
In short: with some match patterns and data from 1000 bytes pcre causes php (and probably others) to crash. The problem seems to be that "PCRE uses recursion to handle subpatterns and indefinite repetition" (from PHP bug #24460 (http://bugs.php.net/bug.php?id=24460)).
WOW! Partial macthing rulez :)
Finally... You did it.. It took some time, though... :)
Many thanks :)