spatie/regex
Cleaner, safer wrapper around PHP’s preg_* functions. Provides Regex::match/matchAll/replace with MatchResult objects, easy access to groups, sensible defaults, and callback-based replacements—no by-reference variables or confusing false/null error handling.
Full Changelog: https://github.com/spatie/regex/compare/3.0.0...3.1.0
PREG_UNMATCHED_AS_NULL (#61)resultOr and groupOr methodsnamedGroupFull Changelog: https://github.com/spatie/regex/compare/3.1.0...3.1.1
How can I help you explore Laravel packages today?