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
Uh oh!
There was an error while loading. Please reload this page.
-
😎 T-Regx The Dinosaur is really proud to announce its release
0.40.0!Release of
0.40.0is 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/nmodifier - "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/nmodifier to every PHP version supported. So if you're using T-Regx on PHP as old as 7.1, you are free to use/ninPatternandPcrePatternto 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/nbackport.The detailed list of changes is in ChangeLog.md.
Breaking changes
SubjectNotMatchedException.getSubject().ChainedReplace,PatternTemplateandTemplateBuilderto other namespaces.MalformedPatternExceptionmessageNull byte in regextoPattern may not contain null-byte.MalformedPatternExceptionmessage...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_INSENSITIVEPattern::UNICODEPattern::MULTILINEPattern::SINGLELINEPattern::IGNORE_WHITESPACEPattern::ANCHOREDPattern::GREEDYNESS_INVERTEDPattern::RESTRICTIVE_ESCAPEPattern::DUPLICATE_NAMESPattern::DOLLAR_ENDONLYPattern::STUDYFrom now on, patterns can be constructed with such constants, for example:
String literal modifiers continue to work as before
Other
PlaceholderFigureExceptionnow 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