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

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/regex/compare/3.1.0...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.4.0
  • added groups method
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
0.0.1
  • experimental release
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.
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings
coleus/apps
seampact/laravel
emmyconceptng/laravel-ng-postcode
jjsquady/round-robin