# Removing track numbers in the file name

**URL:** https://community.mp3tag.de/t/removing-track-numbers-in-the-file-name/12391
**Category:** Support
**Created:** [August 13, 2011, 9:37pm UTC](https://community.mp3tag.de/t/removing-track-numbers-in-the-file-name/12391 "2011-08-13T21:37:26Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![vice86](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/v/df705f/32.png) [@vice86](https://community.mp3tag.de/u/vice86)
#### Post date: [August 13, 2011, 9:37pm UTC](https://community.mp3tag.de/t/removing-track-numbers-in-the-file-name/12391/1 "2011-08-13T21:37:26Z")

</div>

I saw the expressions thread but I must be a dummy cuz I just can't figure out the expressions to use to get rid of what I'm trying to get rid of.

I have a bunch of albums where the tracks are named

1. Artist - Track

I'm trying to batch delete all the numbers at the beginning of each track in the filename. A bunch of albums go up to "17. " while another set of albums are name 101. up to 220.

Can someone let me know? Right now I have a simple delete set up where I have "Original: 01. " and replace with nothing....you can imagine how annoying that gets editing that to 02. , 03,....

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [August 13, 2011, 9:53pm UTC](https://community.mp3tag.de/t/removing-track-numbers-in-the-file-name/12391/2 "2011-08-13T21:53:37Z")

</div>

Action: Format Value  
Field: \_FILENAME  
Formatstring: $regexp(%\_filename%,^\d+. ,)

---

<div class="post-metadata">

### Author: ![vice86](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/v/df705f/32.png) [@vice86](https://community.mp3tag.de/u/vice86)
#### Post date: [August 14, 2011, 4:00pm UTC](https://community.mp3tag.de/t/removing-track-numbers-in-the-file-name/12391/3 "2011-08-14T16:00:20Z")

</div>

Thanks Pone...worked like a charm. I woulda never figured that out..lol

---

<div class="post-metadata">

### Author: ![IndiaPress](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/i/f07891/32.png) [@IndiaPress](https://community.mp3tag.de/u/IndiaPress)
#### Post date: [August 27, 2011, 9:05am UTC](https://community.mp3tag.de/t/removing-track-numbers-in-the-file-name/12391/4 "2011-08-27T09:05:50Z")

</div>

> [@vice86](#):
>
> Thanks Pone...worked like a charm. I woulda never figured that out..lol

Sir,

I also want to rename files

From:  
274-01 Ban Ke Panchi.mp3

To:  
01 Ban Ke Panchi.mp3

274 (value) is the %discnumber% [this value changes in numbers]

Please give the code for the same.

---

<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: [August 27, 2011, 10:32am UTC](https://community.mp3tag.de/t/removing-track-numbers-in-the-file-name/12391/5 "2011-08-27T10:32:44Z")

</div>

> [@IndiaPress](#):
>
> ... Please give the code ...

Please try to become more familiar with Mp3tag and at first read the FAQ area, for example ....  
[Actions](https://community.mp3tag.de/t/967/11)  
... and also ...  
[/t/1073/1](https://community.mp3tag.de/t/1073/1)

Study the Mp3tag help manual, sections Scripting and Actions.

DD.20110827.1434.CEST

Edit.  
See also ...  
[Removing a disc and track number](https://community.mp3tag.de/t/9911/9)

DD.20111018.1647.CEST

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [August 27, 2011, 10:33am UTC](https://community.mp3tag.de/t/removing-track-numbers-in-the-file-name/12391/6 "2011-08-27T10:33:14Z")

</div>

> [@IndiaPress](#):
>
> Sir,
> 
> I also want to rename files
> 
> From:  
> 274-01 Ban Ke Panchi.mp3
> 
> To:  
> 01 Ban Ke Panchi.mp3
> 
> 274 (value) is the %discnumber% [this value changes in numbers]
> 
> Please give the code for the same.

Action: Format Value  
Field: \_FILENAME  
Formatstring: $regexp(%\_filename%,^\d+-,)

---

<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:23pm UTC](https://community.mp3tag.de/t/removing-track-numbers-in-the-file-name/12391/7 "2026-02-09T12:23:16Z")

</div>


