Modified regex to fit some edge cases. Tests still pass
Bugfix: overlaps weren't handled correctly. Test case was incorrect
Add additional separators
Bugfix: handle match at the beginning of the string
Added a test case that handles an overlap
Added MIT license
Is there an replacement for this? I was using this class and my configuration failed after updating.
Fixed error "Array and string offset access syntax with curly braces is no longer supported" in newer PHP versions