# Track Number with Multiple CDs

**URL:** https://community.mp3tag.de/t/track-number-with-multiple-cds/1778
**Category:** Off-Topic
**Created:** [March 13, 2005, 8:45pm UTC](https://community.mp3tag.de/t/track-number-with-multiple-cds/1778 "2005-03-13T20:45:46Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Rigido](https://community.mp3tag.de/user_avatar/community.mp3tag.de/rigido/32/8725_2.png) [@Rigido](https://community.mp3tag.de/u/Rigido)
#### Post date: [March 13, 2005, 8:45pm UTC](https://community.mp3tag.de/t/track-number-with-multiple-cds/1778/1 "2005-03-13T20:45:46Z")

</div>

Hi,  
this is mostly a tip request other than a support one...sorry! ![:w00t:](https://community.mp3tag.de/uploads/default/original/1X/cb01eca72fe9339ff6f3ec9f1e3c5fe002be0f0a.gif ":w00t:")

Problem:  
I have ripped a double CD album on the same directory as I don't want to create different dirs (like CD1, CD2 ecc)...the problem is with Track Number.  
It seems like Mp3Tag writes / (Ex. 1/5 and 2/3) with no problems at all.  
Question(s):  
It is "standard"? I mean, other application will read and handle that value without problems? Is there any length limit for the track tag?

I would like to write a format action (to replace 1/1 with 01/01), where can I find tips and "Syntax and Function" reference for the language used for MTag actions?

Thanks,  
Andrea "Rigido".

---

<div class="post-metadata">

### Author: ![Sebastian\_Mares](https://community.mp3tag.de/user_avatar/community.mp3tag.de/sebastian_mares/32/9285_2.png) [@Sebastian\_Mares](https://community.mp3tag.de/u/Sebastian_Mares)
#### Post date: [March 13, 2005, 8:56pm UTC](https://community.mp3tag.de/t/track-number-with-multiple-cds/1778/2 "2005-03-13T20:56:20Z")

</div>

I moved this to Off-Topic since it isn't really a support query as you already said. 🙂

Anyways, there is no standard mode for entering disc and track numbers. AFAIK, iTunes uses two fields for storing the data: track and disc. Other programs rely on a Disc/Track or Track/Disc mode.

For help on actions, simply have a look on the forums or in the MP3Tag help. 😉

Regards,  
Sebastian

---

<div class="post-metadata">

### Author: ![Rigido](https://community.mp3tag.de/user_avatar/community.mp3tag.de/rigido/32/8725_2.png) [@Rigido](https://community.mp3tag.de/u/Rigido)
#### Post date: [March 13, 2005, 9:09pm UTC](https://community.mp3tag.de/t/track-number-with-multiple-cds/1778/3 "2005-03-13T21:09:05Z")

</div>

Thank you Sebastian, even if I don't think that this is really Off-Topic.

By the way, i found the main scripting function page and I started to think on that action.  
I think that this could be a good starting point:

```
$if($strchr(%TRACK%,/),$num($left(%TRACK%,$strchr(%TRACK%,/)-1),2))

```

but how can I format the whole field? On the first run this would change my track to 01! ![:angry:](https://community.mp3tag.de/uploads/default/original/1X/ebadaff04ae073d3d1cb3e2f4c6acf132380e5a5.gif ":angry:")

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [March 13, 2005, 9:19pm UTC](https://community.mp3tag.de/t/track-number-with-multiple-cds/1778/4 "2005-03-13T21:19:07Z")

</div>

Hello Rigido!

As Sebastian already stated above, there is no real standard. Almost every application I'm aware of support the "Track/Disc" notation. Although two different fields like "TRACK" and "DISC" are much cleaner - but not all apps are supporting this.

To solve your leading zeros problem, simply create a new action Replace with regular expression for the field **TRACK** and use (\d+)/(\d+)  
as regular expression and replace the matches with $num($1,2)/$num($2,2)

Best regards,  
~ Florian

---

<div class="post-metadata">

### Author: ![Rigido](https://community.mp3tag.de/user_avatar/community.mp3tag.de/rigido/32/8725_2.png) [@Rigido](https://community.mp3tag.de/u/Rigido)
#### Post date: [March 13, 2005, 9:29pm UTC](https://community.mp3tag.de/t/track-number-with-multiple-cds/1778/5 "2005-03-13T21:29:59Z")

</div>

Thank you so much, it worked perfectly!
