# Using Part of Filename as Title - Almost there need one step help

**URL:** https://community.mp3tag.de/t/using-part-of-filename-as-title-almost-there-need-one-step-help/13984
**Category:** Support
**Created:** [October 10, 2012, 11:14pm UTC](https://community.mp3tag.de/t/using-part-of-filename-as-title-almost-there-need-one-step-help/13984 "2012-10-10T23:14:13Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![iswami11](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/i/3e96dc/32.png) [@iswami11](https://community.mp3tag.de/u/iswami11)
#### Post date: [October 10, 2012, 11:14pm UTC](https://community.mp3tag.de/t/using-part-of-filename-as-title-almost-there-need-one-step-help/13984/1 "2012-10-10T23:14:13Z")

</div>

Hey guys,

I had an album with terrible tagging so I removed all data.

It still has the default filenames as for example "01 - Into The Future.mp3"

I have managed to get the title to "- Into The Future" using:

Convert \> filename - tag \> %dummy% %title%

Is there anyone who can help me with the correct code to also get rid of the leading dash? so I can end up from "01 - Into The Future.mp3" to "Into The Future"

Thanks!!

---

<div class="post-metadata">

### Author: ![ykeyke](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/y/d26b3c/32.png) [@ykeyke](https://community.mp3tag.de/u/ykeyke)
#### Post date: [October 10, 2012, 11:27pm UTC](https://community.mp3tag.de/t/using-part-of-filename-as-title-almost-there-need-one-step-help/13984/2 "2012-10-10T23:27:25Z")

</div>

You can use:

Alt + 3, in old filename: %1 - %2, and in the new one %2, this if you want to change the filename.

If you want to change the title, you have to do: Convert \> filename - tag \> %dummy% **-** %title%

Hope this help

---

<div class="post-metadata">

### Author: ![iswami11](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/i/3e96dc/32.png) [@iswami11](https://community.mp3tag.de/u/iswami11)
#### Post date: [October 10, 2012, 11:35pm UTC](https://community.mp3tag.de/t/using-part-of-filename-as-title-almost-there-need-one-step-help/13984/3 "2012-10-10T23:35:49Z")

</div>

> [@ykeyke](#):
>
> You can use:
> 
> Alt + 3, in old filename: %1 - %2, and in the new one %2

Thank you for your suggestion. I think what you gave me was how to change the Filename. I am trying to change the Title. If the **Filename** is "01 - Into The Future.mp3" ....how will I change the **TITLE** to "Into The Future" ?

I want to get rid of the "01 - ".

Thank You!

---

<div class="post-metadata">

### Author: ![ykeyke](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/y/d26b3c/32.png) [@ykeyke](https://community.mp3tag.de/u/ykeyke)
#### Post date: [October 10, 2012, 11:48pm UTC](https://community.mp3tag.de/t/using-part-of-filename-as-title-almost-there-need-one-step-help/13984/4 "2012-10-10T23:48:26Z")

</div>

> [@iswami11](#):
>
> I have managed to get the title to "- Into The Future" using:
> 
> Convert \> filename - tag \> **%dummy% %title%**

Try this: Convert \> filename - tag \> **%dummy% - %title%**

---

<div class="post-metadata">

### Author: ![peryan](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/3e96dc/32.png) [@peryan](https://community.mp3tag.de/u/peryan)
#### Post date: [October 11, 2012, 12:17am UTC](https://community.mp3tag.de/t/using-part-of-filename-as-title-almost-there-need-one-step-help/13984/5 "2012-10-11T00:17:25Z")

</div>

I'd like to use this approach to change title on all tracks, but the Convert-\>Filename-Tag opens up with OK and Preview button greyed out. Could you please advise how to enable it?

---

<div class="post-metadata">

### Author: ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)
#### Post date: [October 11, 2012, 12:29am UTC](https://community.mp3tag.de/t/using-part-of-filename-as-title-almost-there-need-one-step-help/13984/6 "2012-10-11T00:29:41Z")

</div>

Looks like your files are not formatted like you say they are. One way around this is to use:

Begin Action Group **\_Script Test#TEST**

**Action #1** _Actiontype 5:_ **Format value** _Field \_\_\_\_\_\_:_ **TITLE** _Formatstring:_ **$regexp(%\_filename%,'^\d+\s\*-+\s\*(.+)','$1')**

End Action Group **\_Script Test#TEST** (1 Action)

It will work as long as the files begin with a number and a '-' They don't have to contain a whitespace between the '-'. The rest of the file can be like

**FILENAME \>\>\> TITLE**

01-The Hives- A.K.A. I-D-I-O-T.mp3 \>\>\> The Hives- A.K.A. I-D-I-O-T 01 - The Hives- A.K.A. I-D-I-O-T.mp3 \>\>\> The Hives- A.K.A. I-D-I-O-T
and it will still work.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [October 11, 2012, 3:20am UTC](https://community.mp3tag.de/t/using-part-of-filename-as-title-almost-there-need-one-step-help/13984/7 "2012-10-11T03:20:00Z")

</div>

> [@peryan](#):
>
> I'd like to use this approach to change title on all tracks, but the Convert-\>Filename-Tag opens up with OK and Preview button greyed out. Could you please advise how to enable it?

You would have to enter a mask before one of the buttons becomes active.  
The previous posts show you the syntax.  
THe dialogue itself has a preview so you can see if you use a suitable mask.

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [February 9, 2026, 12:24pm UTC](https://community.mp3tag.de/t/using-part-of-filename-as-title-almost-there-need-one-step-help/13984/8 "2026-02-09T12:24:06Z")

</div>


