http://qs321.pair.com?node_id=1028789


in reply to RE question; how to insert a digit between const[a-z]*3 && inc[0-9]*3?

s{(?<=[a-z])([0-9]{1,3})(?=[.])}{ sprintf "%04d", $1 }ge;

...with whatever additions are needed near the start and end of that regex in order to only match the parts that you want to.

- tye