# Tag from Filename question

**URL:** https://community.mp3tag.de/t/tag-from-filename-question/3050
**Category:** Support
**Created:** [March 16, 2006, 4:56am UTC](https://community.mp3tag.de/t/tag-from-filename-question/3050 "2006-03-16T04:56:52Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![infirmus](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/i/ecccb3/32.png) [@infirmus](https://community.mp3tag.de/u/infirmus)
#### Post date: [March 16, 2006, 4:56am UTC](https://community.mp3tag.de/t/tag-from-filename-question/3050/1 "2006-03-16T04:56:52Z")

</div>

I have quite a few mp3's that I am trying to tag that have the disc number and track number stored as Xxx where X is the disc number and xx is the track number.

Can Mp3tag read this filename format into the relevant id3 tags?

Any help appreciated.

---

<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 18, 2006, 9:38am UTC](https://community.mp3tag.de/t/tag-from-filename-question/3050/2 "2006-03-18T09:38:58Z")

</div>

I would use the Converter "Filename - Tag" to put the Xxx from the filename in the TRACK field.  
Then you have for example:  
TRACK = 101

And after you used the 2 actions, it will become:  
TRACK = 01  
DISCNMUBER = 1

Action #1:  
_Action type:_ **Replace with regular expressions**  
_Field:_ **TRACK**  
_Regular expression:_ **^(\d)(\d\d)$**  
_Replace matches with:_ **$1-$2**

[] case-sensitive comparison

Action #2:  
_Action type:_ **Guess values**  
_Source format:_ **%track%**  
_Guessing pattern:_ **%discnumber%-%track%**

---

<div class="post-metadata">

### Author: ![infirmus](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/i/ecccb3/32.png) [@infirmus](https://community.mp3tag.de/u/infirmus)
#### Post date: [March 19, 2006, 4:57am UTC](https://community.mp3tag.de/t/tag-from-filename-question/3050/3 "2006-03-19T04:57:54Z")

</div>

Thankyou, it works perfect.

---

<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:19pm UTC](https://community.mp3tag.de/t/tag-from-filename-question/3050/4 "2026-02-09T12:19:41Z")

</div>


