# guessing track number

**URL:** https://community.mp3tag.de/t/guessing-track-number/1669
**Category:** Support
**Created:** [February 2, 2005, 2:57am UTC](https://community.mp3tag.de/t/guessing-track-number/1669 "2005-02-02T02:57:59Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![kmare](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/bc79bd/32.png) [@kmare](https://community.mp3tag.de/u/kmare)
#### Post date: [February 2, 2005, 2:57am UTC](https://community.mp3tag.de/t/guessing-track-number/1669/1 "2005-02-02T02:57:59Z")

</div>

Anyone have a recommendation on how to fill track numbers within the tag? I have filesnames that are in a variety of formats ie:  
##-artist-title  
artist-##-title  
etc.

Is there a clean way to filter the filename down to a number and paste that into the mp3tag?

I was thinking of filtering files by 01,02,03 etc and manually tagging each group -- should be an easier way though ![:rolleyes:](https://community.mp3tag.de/uploads/default/original/1X/3a79e8b0b7d169b30216785521d7c6f4f895c421.gif ":rolleyes:")

---

<div class="post-metadata">

### Author: ![Fux](https://community.mp3tag.de/user_avatar/community.mp3tag.de/fux/32/18_2.png) [@Fux](https://community.mp3tag.de/u/Fux)
#### Post date: [February 2, 2005, 9:13am UTC](https://community.mp3tag.de/t/guessing-track-number/1669/2 "2005-02-02T09:13:02Z")

</div>

I am right? You only want the tracknumber from your filename into your tag?  
Only for filenames with track inside:  
1.: Format field TRACK with %\_filename%  
2.: A Regular Expression with field TRACK:

```
.*-\s?(\d+)\s?-.*|^(\d+)\s?-.* substitute with $1$2

```

Regards  
Fux

---

<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/guessing-track-number/1669/3 "2026-02-09T12:19:19Z")

</div>


