spatie/regex
Spatie Regex wraps PHP's preg_match, preg_match_all, preg_replace and preg_replace_callback in a small object API that returns MatchResult objects instead of reference variables and false checks. Results expose hasMatch, result, group, and fallbacks such as resultOr and groupOr. Replacement callbacks receive the MatchResult, and the package installs with Composer and ships tests.
Maintenance activity