Mass File Rename


I would like to rename my files from:

GEN001.mp3 to GEN1.mp3
GEN002.mp3 to GEN5.mp3
GEN003.mp3 to GEN3.mp3
GEN050.mp3 to GEN50.mp3
GEN051.mp3 to GEN51.mp3
GEN100.mp3 to GEN100.mp3 (keep the same).

In other words, get rid of the leading zero's, but still keep the zero's that matter.

Thanks in advance.


Action type: Replace with regular expression
Regular expression: ([A-Z])0*([1-9].*)
Replace matches with: $1$2

[ ] case-sensitive comparison


Thanks for the reply.
I guess I should have mentioned, that the preceeding number of letters is not neccessarily always three...

It can be:
but can also be:

So the name preceeding the zero's can be either:
just letters (min 3 letters - max 5 letters)
~GEN001~ or ~RUTH001~ or ~TITUS001~
or a combination of 1 number (max 1 number either "1" "2" or "3") and letters (min 3 letters - max 4 letters)
~1COR001~ or ~2THES001~

Can this still be done or am I asking too much here?


Did you try my action on your files because it seems to work on all cases described by you.


Ahh... so it does. I tried adding an "_" between the GEN and the number... like: GEN_1 instead of GEN1. Can this be done? No biggy if it can't.

Thanks for the help.


Did you try

Regular expression: ([A-Z])0*([1-9].*)
Replace matches with: $1$2

add "_" between $1 and $2


Yes, well at least I thought I had.
Now I'm second guessing myself, because I just tried it and it works.

I 'thought' I had... my bad.

The renaming is to help in a mass/batch lyric import (my other post).

Do you know of any way of doing this?


The only solution is the one posted already that requires you to have the lyrics in one line per file. TextPad for example supports RegExp replace so you could replace \n with whatever character you want.