Welcome to the Monastery | |
PerlMonks |
Re: Replace all characters inbetweenby GrandFather (Saint) |
on Jun 06, 2022 at 21:55 UTC ( [id://11144463]=note: print w/replies, xml ) | Need Help?? |
Using a simple substitution with look behind and look ahead seems to fit the bill:
Prints:
with lower case 'a' used to make the substitutions clear.
Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
In Section
Seekers of Perl Wisdom
|
|