Without RegEx i mean you have to search and replace 9-times...
... so here a quick RegEx solution:
(note: if this works depends on your real file names, if you have gave bad examples....)
> name the 1-9 digits are a zero
> so file1.ext will be file01.ext
> or file 1 .ext will be file 01 .ext thank you
1.) think which part you can catch from the file name
all chars .+
an blank or not \s*
one digit \d
2.) so search for "all char/sign followed by an blank (or not) - followed by an single digit at the end"
(.+\s*)(\d)
3.) and replace with all from group 1, an new zero Ø, and the original digit from group 2
\10\2
HTH?
Hello ,
Stefan, it seems you are close, but your regular expression is adding an additional zero to all numbers, without regards if they are single or multiple digits. Only the single digits (1-9) need to have a zero preceding the number .
current regular expression does:
file11.ext becomes file011.ext
file003.ext becomes file0003.ext
Thank you