http://www.perlmonks.org?node_id=1028962


in reply to Re: RE question; how to insert a digit between const[a-z]*3 && inc[0-9]*3? (sprintf)
in thread RE question; how to insert a digit between const[a-z]*3 && inc[0-9]*3?

Greetings tye.
Thanks for taking the time to respond.
s{(?<=[a-z])([0-9]{1,3})(?=[.])}{ sprintf "%04d", $1 }ge;
Looks brilliant in it's simplicity. But my head is still in sed(1) scripting mode. So I fear I am not yet following it. :(

I'm attempting to sort it out now. :)

Thanks again!

#!/usr/bin/perl -Tw
use perl::always;
my $perl_version = "5.12.4";
print $perl_version;