Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Regex Laravel Package

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.

View on GitHub
Deep Wiki
Context7
3.1.1
3.1.0
  • Add support for PHP 8.1

Full Changelog: https://github.com/spatie/regex/compare/3.0.0...3.1.0

3.0.0
  • implement PREG_UNMATCHED_AS_NULL (#61)
2.0.1
  • small internal refactor
2.0.0
  • require PHP 8+
  • drop support for PHP 7.x
  • convert syntax to PHP 8
  • move exceptions to "Exceptions" directory to match structure of other packages
1.4.2
  • add support for PHP 8.0
  • drop anything below PHP 7.3
1.4.1
  • fix for #37
1.3.2
  • fix determining the last preg error
1.3.1
  • fix for PHP 7.3
1.3.0
  • Treat named groups the same way as regular groups
1.2.0
  • Added resultOr and groupOr methods
1.1.0
  • Added namedGroup
1.0.0
  • Initial release
What's
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console