Have you noticed Variable-Length Lookbehinds: actually possible in Perl/PCRE!?

This is now history!

$ perl -wE 'say "aaaab" =~ /(?<=a{1,20})b/' Variable length lookbehind not implemented in regex m/(?<=a{1,20})b/ a +t -e line 1. [$?: 255] $ blead perl -wE 'say "aaaab" =~ /(?<=a{1,20})b/' Variable length lookbehind is experimental in regex; marked by <-- HER +E in m/(?<=a{1,20})b <-- HERE / at -e line 1. 1

The original blog post by Tom Wyant here.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re: Variable length lookbehind
by LanX (Saint) on Mar 24, 2019 at 13:16 UTC