Hi how can i remove numbers for this mp3 files
It would easiest to rename the files with Convert>Tag-Filename
Format string: %artist% - %title%
as I assume that the field TITLE does not have the number.
Doesn t works must be some code to remove the numbers
Import the data from the filename to the tags:
Convert>Filename-Tag
Format string: %artist% - %title%
Then use Convert>Tag-Tag for TITLE with
Format string: $regexp(%title%,(.*)\d+,$1)
Then use Convert>Tag-Filename
Format string: %artist% - %title%
It is my opinion that if you really insist on tweaking only the filename without tagging the files, look out for a good file renaming utility as MP3tag is way over the top for that task.
Thank you for this, it is of great help. i however have a query in regards to a title tag:
File name: Michael Jackson-Beat It Bpm 120.mp3
Artist Tag: Michael Jackson
Title Tag: Beat It Bpm 120
I use the following format string: $regexp(%title%,(.*)\d+,$1)
This removes one # at a time, so i have run it thee times to remove all the three #s (e.g 120) leaving the space between the Bpm 120.
What would be an format string to use to remove the space in-front of the number and the three digits/ number. usually this is the case with BPMs.
Could be
$regexp(%title%,(.*?) \d+,$1)
or
$regexp(%title%,(.*) \d+,$1)
or
$regexp(%title%,(.*?) Bpm \d+,$1)
or even
$regexp(%title%, \d+,)
Careful with tracks that have a "Part x" in the TITLE or other trailing numbers that actually should stay. Endangered species are:
"Love Potion No. 9" (Clovers)
"'74 '75" (Connells)
"9 to 5" (Dolly Parton)
"1999" (Prince)
"Area Code 51" (Geezer Butler)
"Engine 54" (Ethopians)
"R-9" (Cybotron)
"Say I'm Your No. 1" (Princess)
Thank you ohrenkino i like the format string $regexp(%title%, \d+,) it deletes the number also the space before the number as well. eg " 123"
as I said: be careful - the regular expression deletes any number with a preceeding space.
