Adding _01 to the end of every file name (before extension)

A swapping-ground for Regular Expression syntax

Adding _01 to the end of every file name (before extension)

Postby darenare » Wed Nov 17, 2010 3:13 pm

Hi all!

Found this program just as I was about to buy PowerGrep...am happy I did! Sorry to post such a mundane question, but I need some help kicking off.

I have a folder with about 6000 jpgs in them, and what I want to do is add the string "_01" at the end of each filename, before the .jpg extension.

So:

1051.jpg
2005.jpg
J48018.jpg

becomes:

1051_01.jpg
2005_01.jpg
J48018_01.jpg

Have used search and replace before, but this is different as i'm just appending it. I'm not using the command line version, i'm using the program. I presume I would need to use a 'Regular Expression' but can't get much further than that.

If anyone has the answer, or can link me to another similar post, then I would be very very grateful.

Thanks all!
darenare
 
Posts: 2
Joined: Wed Nov 17, 2010 2:54 pm

Re: Adding _01 to the end of every file name (before extension)

Postby darenare » Wed Nov 17, 2010 6:52 pm

Erm..., sorry, being thick....just need to use the ADD section....obviously!
darenare
 
Posts: 2
Joined: Wed Nov 17, 2010 2:54 pm


Return to Regular Expressions