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.41.0!
We've been 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 is available as of version 0.41.0.
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.41.0
!We've been 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 is available as of version0.41.0
.The detailed list of changes is in ChangeLog.md.
0.41.0
T-Regx officially supports PHP 8.2.n
modifier for every supported PHP version:7.1
-8.2
Despite modifier
/n
being only valid in vanilla regexp in PHP only since8.2
,modifier
/n
is fully supported in T-Regx in each PHP version.Added full support for
n
modifier inPattern
Pattern::of($pattern, 'n')
is now acceptedPattern::inject($pattern, $figures, 'n')
is now acceptedPattern::template($pattern, 'n')
is now acceptedPattern::builder($pattern, 'n')
is now acceptedPattern::literal($text, 'n')
is now acceptedPattern::alteration($texts, 'n')
is now acceptedPattern::mask($mask, $keywords, 'n')
is now acceptedPattern::list()
now accepts patterns withn
modifierAdded full support for
n
modifier inPcrePattern
PcrePattern::of("/$pattern/n", )
is now acceptedPcrePattern::inject("/$pattern/n", $figures)
is now acceptedPcrePattern::template("/$pattern/n")
is now acceptedPcrePattern::builder("/$pattern/n")
is now acceptedPattern
.Added
Pattern::NO_AUTOCAPTURE
From now on, patterns can be constructed with such constants, for example:
String literal modifiers continue to work as before
The detailed list of changes is in ChangeLog.md.
Rawrrrrrrr!
This discussion was created from the release 0.41.0 - Added support for modifier 'n'.
Beta Was this translation helpful? Give feedback.
All reactions