Deleting parts of filenames

Hi all

New to Mp3tag. Have searched the forums for an answer to my question and found many questions that is similar to mine, but nothing that answers my precise problem.

I have a lot of files, that contain different numbers at the beginning of each filename. I would like to remove these numbers. My files look like this:

2285186-1-7_Swans_Volcano.wav
9008863-1-1_Alcest_Opale.wav
2360934-1-10_TV On The Radio_DLZ.wav

Is it possible to create an action, which removes the numbers, so the filenames will look like this:

_Swans_Volcano.wav
_Alcest_Opale.wav
_TV On The Radio_DLZ.wav

Hope to hear from you,
All best
Anders

see e.g. here:
/t/12391/1
or here: /t/8623/1

Thank you so much!

I used this:
$regexp(%_FILENAME%,'^[\d.- ]+(.*)',$1)

My files now look like this:
_Swans_Volcano.wav
_Alcest_Opale.wav
_TV On The Radio_DLZ.wav

If I want to remove the first "_", is there a way to make changes in: $regexp(%_FILENAME%,'^[\d.- ]+(.*)',$1)

?

Thank you kindly for your help :slight_smile:

Anders

Use for the initial filename (with number):
$regexp(%FILENAME%,'[2]+(.*)',$1)

To get rid of the leading underscore (for those files that have been processed already):
$regexp(%FILENAME%,'^',)


  1. \d.- ↩︎

  2. \d.- ↩︎