Help needed with renaming

Hi there,

i want to rename a bunch of files (99 to be exact) with the following pattern:
01 - song1.mp3
02 - song2.mp3
.
.
.
99 - song99.mp3

to

song1.mp3
song2.mp3
.
.
.
song99.mp3

Is this better done with search and replace or with regular expressions?
I simply don't find out, what to do...

Hi Ralph,

Rename Pattern=(.*)song(.*).mp3 To song\2.mp3 regexp 

This results in

song1.mp3
song2.mp3
song99.mp3
....

Let us know if this works for you.
Or if you would prefer a bit different result ,
I know that several of us would enjoy the challenge.

:opusicon: porcupine

That would work providing the songs are actually named "song" porc however I have a hunch Ralph's taste in music is a little more varied towards music with other titles.

This works for me as long as none of the actual song titles have a - in the name (other than the one after the numbers)

Hi John !
Quite Right !

I have a feeling that Ralph may want a result that results in 01, 02 , ....
Well, we'll see.

Well Ralph ??
Thanks for the followup John.

:opusicon: porcupine

Thanks John and Porcupine! John was pretty right about my music taste. What i wanted to do, was to "crop" or delete the first 5 (XX_-_) chars of the songs titles.

This brings me to John's mentioned problem when a - is in the song title: Wouldn't it be easier to just crop the first X chars of the original string?

Since all your leading numbers have 2 digits, yes, you could do that too with a find RegEx of:

.....(.*)

And a replace RegEx of:

\1

The one thing you would want to ensure however, is that only the desired files are selected before you run the renaming operation for the above will strip the first 5 characters of any file with 5 characters or longer.

[quote="ralph76"]Hi there,

i want to rename a bunch of files (99 to be exact) with the following pattern:
01 - song1.mp3
02 - song2.mp3
.
.
.
99 - song99.mp3

to

song1.mp3
song2.mp3
.
.
.
song99.mp3

Is this better done with search and replace or with regular expressions?
I simply don't find out, what to do...[/quote]

No..
It's very easy.

Sellect all the song.
Sellect Files>Commands>Rename (i've made hot keys (left alt+shift+R) to do this).
In your example you would replace song1.mp3 with and astrisk (*) and in the new name box just an astrisk.
Hit Enter.

If you mess up, Edit>Undo will put it back.

Landis.

Hi Lunar,
This was a bit of a for me.
I misunderstood the post and thought ralph 76 literally meant that his filenames included 'song' !

It was a logical end though.
I had no knowledge from Ralph's post to the contrary :wink: .

In hindsight, this is a better answer.

old name:
^[0-9]+( - )(.*)
new name:
\2

Or even

old name:
(^[0-9]+)( - )(.*)[0-9]+(\..*)
new name:
\3\1\4

Regards,
Zippo