I'm terrible with regex and was wondering if anyone could help me out with the following search.
I have several hundred image files that need to have only the last part of the file name changed. They look like:
CE3701_07_03_10_08_01.gif
CE3701_07_03_10_08_02.gif
CE3701_07_03_10_08_03.gif
They need to be:
CE3701_07_03_10_08_image1.gif
CE3701_07_03_10_08_image2.gif
CE3701_07_03_10_08_image3.gif
...getting rid of the 0 in the last number and replacing it with "image".
Part of the problem is that some of these file names go up into double-digits, like:
CE3701_07_03_10_08_11.gif
CE3701_07_03_10_08_12.gif
CE3701_07_03_10_08_13.gif
and need the "image" string inserted before the whole number without the 0 being there, like this:
CE3701_07_03_10_08_image11.gif
CE3701_07_03_10_08_image12.gif
CE3701_07_03_10_08_image13.gif
This seems like it'd be easy for someone better acquainted with regex than me. Any thoughts?
Thanks!
~jdk