# Changelog

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

## 3.1.0 - 2021-11-18

- Add support for PHP 8.1

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

## 3.0.0 - 2021-10-06

- implement `PREG_UNMATCHED_AS_NULL` (#61)

## 2.0.1 - 2021-04-20

- small internal refactor

## 2.0.0 - 2021-03-31

- 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 - 2020-11-04

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

## 1.4.1 - 2019-06-19

- fix for #37

## 1.3.2 - 2018-10-29

- fix determining the last preg error

## 1.3.1 - 2018-10-18

- fix for PHP 7.3

## 1.3.0 - 2018-05-24

- Treat named groups the same way as regular groups

## 1.2.0 - 2017-09-04

- Added `resultOr` and `groupOr` methods

## 1.1.0 - 2016-09-15

- Added `namedGroup`

## 1.0.0 - 2016-08-18

- Initial release
