# Changelog

All Notable changes to `regex` will be documented in this file


- Add support for PHP 8.1

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


- implement `PREG_UNMATCHED_AS_NULL` (#61)


- small internal refactor


- 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


- add support for PHP 8.0
- drop anything below PHP 7.3


- fix for #37


- fix determining the last preg error


- fix for PHP 7.3


- Treat named groups the same way as regular groups


- Added `resultOr` and `groupOr` methods


- Added `namedGroup`


- Initial release
