Can it not be as simple as
s{abc(\d+)\.html}{sprintf("abc%04d.html",$1)}ge;
if all the filenames are of the form abc\d+.html or is there a catch?
In reply to Re^2: RE question; how to insert a digit between const[a-z]*3 && inc[0-9]*3? (sprintf)
by hdb
in thread RE question; how to insert a digit between const[a-z]*3 && inc[0-9]*3?
by taint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |