# Remove total track number from x/y format

**URL:** https://community.mp3tag.de/t/remove-total-track-number-from-x-y-format/14322
**Category:** Support
**Created:** [January 5, 2013, 10:19pm UTC](https://community.mp3tag.de/t/remove-total-track-number-from-x-y-format/14322 "2013-01-05T22:19:13Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![cableguy](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/8edcca/32.png) [@cableguy](https://community.mp3tag.de/u/cableguy)
#### Post date: [January 5, 2013, 10:19pm UTC](https://community.mp3tag.de/t/remove-total-track-number-from-x-y-format/14322/1 "2013-01-05T22:19:13Z")

</div>

Hi. I have searched the forums for my answer and can't find an exact reply. Apologies if it is listed. Here's my problem:  
Most music app mobile players/streamers sort their tracks alphabetically using the track "title" as reference. PlugPlayer for example. I am able to add track numbers to the song title tag to get my music app player to list songs numerically. That bit is fine. Now the tracks play in the correct order. However as my current files are track number taged in the 01/20 format (track 01 of 20) for example the resulting re-taging of the track titles is "01/20 - Track title" which looks bad. How do I re-tag the title witout the "/20" total track part keeping only the track number which must keep the leading zero in both the title and the track number sections of the tag. I also need to do this across multiple files in batch.  
Thanks.  
Cableguy.

---

<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: [January 5, 2013, 10:34pm UTC](https://community.mp3tag.de/t/remove-total-track-number-from-x-y-format/14322/2 "2013-01-05T22:34:32Z")

</div>

For Track = 01/20  
$num(%track%,2) returns 01

---

<div class="post-metadata">

### Author: ![cableguy](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/8edcca/32.png) [@cableguy](https://community.mp3tag.de/u/cableguy)
#### Post date: [January 5, 2013, 10:40pm UTC](https://community.mp3tag.de/t/remove-total-track-number-from-x-y-format/14322/3 "2013-01-05T22:40:23Z")

</div>

Hi. Thanks for the quick reply. Sorry I'm a newbe here. Can you please explain how I use this string exactly?  
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: [January 5, 2013, 10:46pm UTC](https://community.mp3tag.de/t/remove-total-track-number-from-x-y-format/14322/4 "2013-01-05T22:46:25Z")

</div>

How did you manage to add the track numbers to the song titles?

Are all titles already changed to "01/20 - Track title" ?

---

<div class="post-metadata">

### Author: ![cableguy](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/8edcca/32.png) [@cableguy](https://community.mp3tag.de/u/cableguy)
#### Post date: [January 5, 2013, 11:14pm UTC](https://community.mp3tag.de/t/remove-total-track-number-from-x-y-format/14322/5 "2013-01-05T23:14:45Z")

</div>

Hi. No. Originaly the mp3 files had song "titles" only and no numbers. I used Mp3tag tag-tag function and used %track% - %title% to make this change. This is where the problem started.

---

<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: [January 5, 2013, 11:25pm UTC](https://community.mp3tag.de/t/remove-total-track-number-from-x-y-format/14322/6 "2013-01-05T23:25:17Z")

</div>

Ok so you should have use Tag - Tag with  
$num(%track%,2) - %title%  
but that's not possible anymore since the title already has the track numbers.

To fix "01/20 - Track title" to "01 - Track title"  
use Tag - Tag on TITLE with  
$regexp(%title%,'^(\d+)/\d+',$1)

---

<div class="post-metadata">

### Author: ![cableguy](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/8edcca/32.png) [@cableguy](https://community.mp3tag.de/u/cableguy)
#### Post date: [January 5, 2013, 11:33pm UTC](https://community.mp3tag.de/t/remove-total-track-number-from-x-y-format/14322/7 "2013-01-05T23:33:13Z")

</div>

Thanks a lot for this. I'll give it a go.

---

<div class="post-metadata">

### Author: ![cableguy](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/8edcca/32.png) [@cableguy](https://community.mp3tag.de/u/cableguy)
#### Post date: [January 7, 2013, 8:07pm UTC](https://community.mp3tag.de/t/remove-total-track-number-from-x-y-format/14322/8 "2013-01-07T20:07:56Z")

</div>

Hi. That worked perfectly.  
Thank you very much.  
Tommy

---

<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/remove-total-track-number-from-x-y-format/14322/9 "2026-02-09T12:24:15Z")

</div>


