If perl supported variable length lookbehind, you could use a lookbehind at the end:
Just a data point but Perl has limited variable length lookbehind as an experimental feature since version 5.30, with support for up to 255 characters. https://perldoc.perl.org/perlexperiment#(Limited)-Variable-length-look-behind
In reply to Re^2: Driving the Engine right off the road
by swl
in thread Driving the Engine right off the road
by Intrepid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |