# Filter based on track number

**URL:** <https://community.mp3tag.de/t/filter-based-on-track-number/46306>\
**Category:** Support\
**Created:** [September 1, 2019, 3:21pm UTC](https://community.mp3tag.de/t/filter-based-on-track-number/46306 "2019-09-01T15:21:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kees788](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/e47774/32.png) [@Kees788](https://community.mp3tag.de/u/Kees788)\
**Post date:** [September 1, 2019, 3:21pm UTC](https://community.mp3tag.de/t/filter-based-on-track-number/46306/1 "2019-09-01T15:21:12Z")

</div>

I am struggling to filter based on track number. For a media center I need to have leading zeroes in front of tracks 1 to 9 in order for a proper view.

I tried a few things but they don't work. I am obviously missing someting simple, any help appreciated. Some files already have leading zeroes or even two for some compilations.

attempts  
track is 1 (displays lots of files)  
%track% is 1 (displays nothing)  
%\_track% is 1 (displays nothing)  
and all of these with "is" replaced for "matches" and 1 in brackets "1  
like

track matches 1  
track matches "1"

Also tried TRACK and Track but afraid I am missing someting simple

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [September 1, 2019, 3:41pm UTC](https://community.mp3tag.de/t/filter-based-on-track-number/46306/2 "2019-09-01T15:41:12Z")

</div>

Please note that the operation keywords have to be in capitals.  
so it should be  
track IS 1  
To filter all tracks where you have no leading zero, you could try  
`NOT track HAS 0 AND %track% MATCHES ^\d$`

---

<div class="post-metadata">

**Author:** ![Kees788](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/e47774/32.png) [@Kees788](https://community.mp3tag.de/u/Kees788)\
**Post date:** [September 1, 2019, 5:30pm UTC](https://community.mp3tag.de/t/filter-based-on-track-number/46306/3 "2019-09-01T17:30:03Z")

</div>

Thanks! Feel like a fool now, appreciate the help!

---

<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:28pm UTC](https://community.mp3tag.de/t/filter-based-on-track-number/46306/4 "2026-02-09T12:28:14Z")

</div>


