Friends,
I have many jpegs that I wish to rename.
Tese are jpgs from a :30 video 1 per second so order is important.
these have names like
99922c1_1.jpg
99922c1_2.jpg
...
99922c1_10.jpg
99922c1_11.jpg
...
99922c1_20.jpg
99922c1_21.jpg
and on like that til 30
and I wish to have the nums
be more like
99922c1_001.jpg
99922c1_002.jpg
...
99922c1_010.jpg
-----------
I am doing a reg expression like so
([0-9]+c[0-9]+_)([0-9]+)
match pass 1
\10\2
yields : 99922c1_01.jpg .. 99922c1_020.jpg
that is good but now i must so a second pass on the 1-9 fellows
([0-9]+c[0-9]+_)([0-9]+)
match pass 2 , on the 01-09
\100\2
and I get 99922c1_001.jpg , 99922c1_002.jpg , 99922c1_009.jpg
so my Q : is there a way to "test" the string length of group2
if the string len is 1 ( as in 99922c1_1.jpg ) pad w 2 zeros " 00 "
if the string len is 2 ( as in 99922c1_10.jpg ) pad w zero "0"
If I can find a single ( not 2 step ) solution I will be reaching for the donate button.
also, I may do this w command line _ I only now have heard that there is a commandline vers of Bulk Rename Utility.
and may I say Bulk rename Utility is a darn fine software.
Likely it can do exactly what i need - i am just not real good at reg exp