NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #100 most downloaded on Packagist
PCRE wrapping library that offers type-safe preg_* replacements.
Latest stable
3.4.0
Last release 5 months ago
07 Jun 2026
Release timing varies
gaps range from 2 weeks to 1.6 years
Nearly every release is documented
notes for 25 of 26 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
26 releases · first in 2021
Drag across the ruler to compare, or tap a release to open it.
Added subject narrowing on matches (requires PHPStan 2.2.2+) by @staabm in #54
Full Changelog: 3.3.2...3.4.0
Allow PHPStan 2 by @SchmidtClaudia in #40
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fix null-removal on nested captured-arrays by @staabm in #37
Full Changelog: 3.3.0...3.3.1
Support matchAll* variants in PHPStan extensions by @staabm in #32
Added a PHPStan extension (include vendor/composer/pcre/extension.neon ) to infer more precise $matches array shape, as well as validate regexes. Than
Fixed one last deprecation when running on PHP 8.4
Full Changelog: 3.1.3...3.1.4
Fixed deprecations when running on PHP 8.4
Full Changelog: https://github.com/composer/pcre/compare/3.1.2...3.1.3
Fixed @param-out and $match by-ref args to work better with PHPStan 1.10.60
@param-out and $match by-ref args to work better with PHPStan 1.10.60Full Changelog: https://github.com/composer/pcre/compare/3.1.1...3.1.2
Fixed Preg::matchAllWithOffsets having the wrong phpdoc for $matches
Preg::matchAllWithOffsets having the wrong phpdoc for $matches (#18)Full Changelog: https://github.com/composer/pcre/compare/3.1.0...3.1.1
Add matchStrictGroups and other strict group operations to avoid nullable matches by @Seldaek in https://github.com/composer/pcre/pull/14
Full Changelog: https://github.com/composer/pcre/compare/3.0.2...3.1.0
Improved type annotations for static analysis, $matches will now be populated correctly with @param-out annotations (requires PHPStan 1.9)
@param-out annotations (requires PHPStan 1.9)Full Changelog: https://github.com/composer/pcre/compare/3.0.1...3.0.2
Code cleanup by @pionl in https://github.com/composer/pcre/pull/13
Full Changelog: https://github.com/composer/pcre/compare/3.0.0...3.0.1
Switch to use PREG_UNMATCHED_AS_NULL always (read more on the rationale and impact)
Full Changelog: https://github.com/composer/pcre/compare/2.0.0...3.0.0
Allow PHPStan 2 by @SchmidtClaudia in #40
Fix PHPStan extension for matchAllStrictGroups by @staabm in #38
Full Changelog: 2.3.0...2.3.1
Support matchAll* variants in PHPStan extensions by @staabm in #32
Added a PHPStan extension (include vendor/composer/pcre/extension.neon ) to infer more precise $matches array shape, as well as validate regexes. Than
Fixed deprecations when running on PHP 8.4
Full Changelog: https://github.com/composer/pcre/compare/2.1.2...2.1.3
Fixed @param-out and $match by-ref args to work better with PHPStan 1.10.60
@param-out and $match by-ref args to work better with PHPStan 1.10.60Full Changelog: https://github.com/composer/pcre/compare/2.1.1...2.2.0
Fixed Preg::matchAllWithOffsets having the wrong phpdoc for $matches
Preg::matchAllWithOffsets having the wrong phpdoc for $matches (#18)Full Changelog: https://github.com/composer/pcre/compare/2.1.0...2.1.1
Add matchStrictGroups and other strict group operations to avoid nullable matches by @Seldaek in https://github.com/composer/pcre/pull/14
Full Changelog: https://github.com/composer/pcre/compare/2.0.2...2.1.0
Improved type annotations for static analysis, $matches will now be populated correctly with @param-out annotations (requires PHPStan 1.9)
@param-out annotations (requires PHPStan 1.9)Full Changelog: https://github.com/composer/pcre/compare/2.0.1...2.0.2
Code cleanup by @pionl in https://github.com/composer/pcre/pull/13
Full Changelog: https://github.com/composer/pcre/compare/2.0.0...2.0.1
Switch to use PREG_UNMATCHED_AS_NULL for all matching functions (read more on the rationale and impact)
Full Changelog: https://github.com/composer/pcre/compare/1.0.1...2.0.0
Fixed phpdoc to be more precise
Nothing published for this version
One column per quarter.