# Using part of filename as title

**URL:** https://community.mp3tag.de/t/using-part-of-filename-as-title/5461
**Category:** General Discussion
**Created:** [September 18, 2007, 2:39am UTC](https://community.mp3tag.de/t/using-part-of-filename-as-title/5461 "2007-09-18T02:39:51Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![rayman555](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/c4cdca/32.png) [@rayman555](https://community.mp3tag.de/u/rayman555)
#### Post date: [September 18, 2007, 2:39am UTC](https://community.mp3tag.de/t/using-part-of-filename-as-title/5461/1 "2007-09-18T02:39:51Z")

</div>

Hi,  
I am a newbie, I learnt that I can use the whole filename as title by using %\_FILENAME% string under the format value. However I was trying to figure out how can I eliminate part of the filename and use the rest as title. e.g if the filename is " **04 Wake me up**" etc what string do I use to just copy " **wake me up**" and skip 04. I would really appreciate it if someone can help me out.

Thanks

---

<div class="post-metadata">

### Author: ![jesus2099](https://community.mp3tag.de/user_avatar/community.mp3tag.de/jesus2099/32/177_2.png) [@jesus2099](https://community.mp3tag.de/u/jesus2099)
#### Post date: [September 18, 2007, 1:59pm UTC](https://community.mp3tag.de/t/using-part-of-filename-as-title/5461/2 "2007-09-18T13:59:32Z")

</div>

You can type

```
%track% %title%

```

if you want

```
TRACK=04
TITLE=Wake me up

```

If you just want the title then you type

```
%dummy% %title%

```

it gives you

```
TITLE=Wake me up

```

(without altering the other existing tags)

---

<div class="post-metadata">

### Author: ![rayman555](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/c4cdca/32.png) [@rayman555](https://community.mp3tag.de/u/rayman555)
#### Post date: [September 18, 2007, 6:57pm UTC](https://community.mp3tag.de/t/using-part-of-filename-as-title/5461/3 "2007-09-18T18:57:21Z")

</div>

QUOTE (jesus2099 @ Sep 18 2007, 16:59) \<{POST\_SNAPBACK}\>

You can type

```
%track% %title%

```

if you want

```
TRACK=04
TITLE=Wake me up

```

If you just want the title then you type

```
%dummy% %title%

```

it gives you

```
TITLE=Wake me up

```

(without altering the other existing tags)

Jesus, I tried what you suggested but it didn't work. Here's what I exactly did I highlighted 4 songs all of these had the title field blank so I was trying to copy the filename without the numbers.  
I selected action(quick) and then chose format value and then under field I selected title and then under Fornat String I put %dummy% %title% I ended up with the number and the filename in the title.  
Am I doing something wrong? Please help me out. Thanks!!

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [September 18, 2007, 7:32pm UTC](https://community.mp3tag.de/t/using-part-of-filename-as-title/5461/4 "2007-09-18T19:32:30Z")

</div>

That is for Convert \> filename - tag  
or  
Action Guess Values with source format %\_filename%

---

<div class="post-metadata">

### Author: ![rayman555](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/c4cdca/32.png) [@rayman555](https://community.mp3tag.de/u/rayman555)
#### Post date: [September 19, 2007, 6:24pm UTC](https://community.mp3tag.de/t/using-part-of-filename-as-title/5461/5 "2007-09-19T18:24:27Z")

</div>

It worked!!! Awesome. Thanks!!!

---

<div class="post-metadata">

### Author: ![DEXSTA](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/67e7ee/32.png) [@DEXSTA](https://community.mp3tag.de/u/DEXSTA)
#### Post date: [March 3, 2009, 3:41am UTC](https://community.mp3tag.de/t/using-part-of-filename-as-title/5461/6 "2009-03-03T03:41:32Z")

</div>

I'm a little confused...I'm a noob and I still cannot get my track to change.....from "02 streets of new york" to "streets of new york"....Can some please post a step by step on how this is done...I've tried both solutions posted on this thread...but, it seems like when i did it, it cut out part of the name....it was showing "of new york" and cut out the "streets" out of the title or it cut out the number but left a blank space in it's place instead of deleting it altogether......PLEASE HELP! thanks!

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [March 4, 2009, 1:51pm UTC](https://community.mp3tag.de/t/using-part-of-filename-as-title/5461/7 "2009-03-04T13:51:27Z")

</div>

There is a difference between your problem and the problem of the topic starter.

For your problem (remove leading track numbers)

_Action type:_ **Replace with regular expressions**  
_Regular expression_: **^\d+\s+**  
_Replace matches with_:

---

<div class="post-metadata">

### Author: ![crazykill2](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/bc79bd/32.png) [@crazykill2](https://community.mp3tag.de/u/crazykill2)
#### Post date: [January 1, 2014, 11:02am UTC](https://community.mp3tag.de/t/using-part-of-filename-as-title/5461/8 "2014-01-01T11:02:40Z")

</div>

> [@dano](#):
>
> That is for Convert \> filename - tag  
> or  
> Action Guess Values with source format %\_filename%

What if happen the filename is "01. Wake me up " and i want to change the title to just "Wake me up" (without the 01.) how can i do it?

---

<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: [January 1, 2014, 11:36am UTC](https://community.mp3tag.de/t/using-part-of-filename-as-title/5461/9 "2014-01-01T11:36:14Z")

</div>

> [@crazykill2](#):
>
> What if happen the filename is "01. Wake me up " and i want to change the title to just "Wake me up" (without the 01.) how can i do it?

Use dano's example from post #7 but modify the search pattern like this:  
^\d+.\s+

---

<div class="post-metadata">

### Author: ![marcelo\_neri](https://community.mp3tag.de/user_avatar/community.mp3tag.de/marcelo_neri/32/409_2.png) [@marcelo\_neri](https://community.mp3tag.de/u/marcelo_neri)
#### Post date: [January 7, 2014, 11:43am UTC](https://community.mp3tag.de/t/using-part-of-filename-as-title/5461/10 "2014-01-07T11:43:08Z")

</div>

> [@dano](#):
>
> There is a difference between your problem and the problem of the topic starter.
> 
> For your problem (remove leading track numbers)
> 
> _Action type:_ **Replace with regular expressions**  
> _Regular expression_: **^\d+\s+**  
> _Replace matches with_:

Hello!

I followed as mentioned above but it didn't work. Maybe I'm doing something wrong. Can you guys help me please? Look the image:

---

<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: [January 7, 2014, 11:48am UTC](https://community.mp3tag.de/t/using-part-of-filename-as-title/5461/11 "2014-01-07T11:48:41Z")

</div>

> [@marcelo\_neri](#):
>
> Hello!
> 
> I followed as mentioned above but it didn't work. Maybe I'm doing something wrong. Can you guys help me please?

Do not use \_all in step 4 but \_filename  
Also you missed out the dot:  
^\d+.\s+

---

<div class="post-metadata">

### Author: ![marcelo\_neri](https://community.mp3tag.de/user_avatar/community.mp3tag.de/marcelo_neri/32/409_2.png) [@marcelo\_neri](https://community.mp3tag.de/u/marcelo_neri)
#### Post date: [January 7, 2014, 12:17pm UTC](https://community.mp3tag.de/t/using-part-of-filename-as-title/5461/12 "2014-01-07T12:17:14Z")

</div>

> [@ohrenkino](#):
>
> Do not use \_all in step 4 but \_filename  
> Also you missed out the dot:  
> ^\d+.\s+

ohrenkino

Now it works. Thanks a lot man!!!

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [January 7, 2014, 12:27pm UTC](https://community.mp3tag.de/t/using-part-of-filename-as-title/5461/13 "2014-01-07T12:27:39Z")

</div>

> [@marcelo\_neri](#):
>
> ... Maybe I'm doing something wrong. ...

The descriptive name, which you give to an action group is in fact the file name of the mta-file stored in the folder "%appdata%\Mp3tag\data\actions" resp. "%appdata%\Roaming\Mp3tag\data\actions".  
Do not use any character for the name of the mta-file, which is a forbidden character in the file system.  
In the string **'01.-\>'**... the character **'\>'** is the reserved character for output redirection and cannot be used as part of the file name.

DD.20140107.1427.CET
