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
In reply to Re: RE question; how to insert a digit between const[a-z]*3 && inc[0-9]*3? (sprintf)
by tye
in thread RE question; how to insert a digit between const[a-z]*3 && inc[0-9]*3?
by taint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |