2 ms·
> variable length lookbehind, which isn't supported by Perl It is supported: https://perldoc.perl.org/perl5300delta#Core-Enhancements https://perldoc.perl.org/
by bmn__ 6y ago
> variable length lookbehind, which isn't supported by Perl
It is supported: https://perldoc.perl.org/perl5300delta#Core-Enhancements https://perldoc.perl.org/perl5300delta#Core-Enhancements
Work-around for all previous versions: http://www.drregex.com/2019/02/variable-length-lookbehinds-actually.html http://www.drregex.com/2019/02/variable-length-lookbehinds-a...
- asicsp 6y agoGood to know that support is being worked upon. Seems limited as of now, this is what I get on v5.32: $ echo 'asb34 asgfdhgree56 jdf42' | perl -lne 'print join "\n", /(?<=\ba[a-z]*)\d+/g' Lookbehind longer than 255 not implemented in regex m/(?<=\ba[a-z]*)\d+/ at -e line 1.