Keep It Simple, Stupid | |
PerlMonks |
Re^3: Regexp substitution on variable-length ranges with embedded code? ( $^N )by LanX (Saint) |
on May 26, 2021 at 14:32 UTC ( [id://11133069]=note: print w/replies, xml ) | Need Help?? |
> PS: beautifying with /x modifier and adding missing ; in replacement left for the interested reader. :) well since my editor has a (mostly functioning) cperl-beautify-regexp
Worth noting that the OP was wrong with his expectation, it's 43:1:1-6; not 43:1:1-5;
Cheers Rolf PS: still not perfect, because the input isn't terminated with a semicolon, but I'm tired now. :)
In Section
Seekers of Perl Wisdom
|
|