You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
😎 T-Regx The Dinosaur is really proud to announce its release 0.40.0!
Release of 0.40.0 is an intermediate release - we're working our fingers to the bone before official release of PHP 8.2, and with it comes the new and shiny /n modifier - "no auto capture". Some of us have been waiting for a long time, and in T-Regx we're not discriminating, and each PHP version should work the same. Because of that, we're backporting /n modifier to every PHP version supported. So if you're using T-Regx on PHP as old as 7.1, you are free to use /n in Pattern and PcrePattern to its fullest. It's completely supported. That feature will be available in version 0.41.0, which will be release in a couple of hours. But before that, we're releasing all changes that were made during the development of /n backport.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
😎 T-Regx The Dinosaur is really proud to announce its release
0.40.0
!Release of
0.40.0
is an intermediate release - we're working our fingers to the bone before official release of PHP 8.2, and with it comes the new and shiny/n
modifier - "no auto capture". Some of us have been waiting for a long time, and in T-Regx we're not discriminating, and each PHP version should work the same. Because of that, we're backporting/n
modifier to every PHP version supported. So if you're using T-Regx on PHP as old as 7.1, you are free to use/n
inPattern
andPcrePattern
to its fullest. It's completely supported. That feature will be available in version0.41.0
, which will be release in a couple of hours. But before that, we're releasing all changes that were made during the development of/n
backport.The detailed list of changes is in ChangeLog.md.
Breaking changes
SubjectNotMatchedException.getSubject()
.ChainedReplace
,PatternTemplate
andTemplateBuilder
to other namespaces.MalformedPatternException
messageNull byte in regex
toPattern may not contain null-byte
.MalformedPatternException
message...unexpected delimiter '\0'
to...null-byte delimiter
.Bug fixes
mask()
didn't take modifiers into account when running validationPattern::mask()
Pattern::template()->mask()
Pattern::builder()->mask()
PcrePattern::template()->mask()
PcrePattern::builder()->mask()
Features
Added public modifier constants to
Pattern
.Pattern::CASE_INSENSITIVE
Pattern::UNICODE
Pattern::MULTILINE
Pattern::SINGLELINE
Pattern::IGNORE_WHITESPACE
Pattern::ANCHORED
Pattern::GREEDYNESS_INVERTED
Pattern::RESTRICTIVE_ESCAPE
Pattern::DUPLICATE_NAMES
Pattern::DOLLAR_ENDONLY
Pattern::STUDY
From now on, patterns can be constructed with such constants, for example:
String literal modifiers continue to work as before
Other
PlaceholderFigureException
now extend correctly implementsPatternException
.The detailed list of changes is in ChangeLog.md.
Rawrrrrrrr!
This discussion was created from the release 0.40.0 - .
Beta Was this translation helpful? Give feedback.
All reactions