# Filtering on a list of discs

**URL:** https://community.mp3tag.de/t/filtering-on-a-list-of-discs/10717
**Category:** Support
**Created:** [August 25, 2010, 4:14pm UTC](https://community.mp3tag.de/t/filtering-on-a-list-of-discs/10717 "2010-08-25T16:14:19Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)
#### Post date: [August 25, 2010, 4:14pm UTC](https://community.mp3tag.de/t/filtering-on-a-list-of-discs/10717/1 "2010-08-25T16:14:19Z")

</div>

I have disc IDs of the form - e.g. 00044006483429-2, and want an Mp3tag filter expression to target a set of thousands of them.

What is the preferred expression form? The best I have come up with is

```
(GTIN IS 00044006483429 AND DISCNUMBER MATCHES ^2/) OR...

```

but that's going to make a very long string ... and I am wary of whatever limit the filter has, not to mention the execution time.

Any advice gratefully received. Thanks.

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [August 25, 2010, 4:45pm UTC](https://community.mp3tag.de/t/filtering-on-a-list-of-discs/10717/2 "2010-08-25T16:45:48Z")

</div>

> [@chrisjj](#):
>
> I have disc IDs of the form - e.g. 00044006483429-2, and want an Mp3tag filter expression to target a set of thousands of them. ... Any advice gratefully received. Thanks.

The Mp3tag Filter has no count method or such thing.  
But there may be a way, anyway, there will be always a way.

Here is a totally quick shot to split the whole amount into smaller packages.

Create a new tag field NR, format value it with %\_COUNTER%, so that all the tracks get a running number.  
Set Filter to:  
(NR GREATER 0) AND (NR LESS 20)

Try other values ...  
Good luck!

DD.20100825.2057.CEST

---

<div class="post-metadata">

### Author: ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)
#### Post date: [August 26, 2010, 9:40am UTC](https://community.mp3tag.de/t/filtering-on-a-list-of-discs/10717/3 "2010-08-26T09:40:12Z")

</div>

Thanks Detlev, but I do need the view to include all the discs. Viewing thousands of discs twenty at a time is not practical for this task.

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [August 26, 2010, 3:16pm UTC](https://community.mp3tag.de/t/filtering-on-a-list-of-discs/10717/4 "2010-08-26T15:16:14Z")

</div>

You make me laugh!  
Did you try other values within the filter expression?  
For example:  
(NR GREATER 0) AND (NR LESS 1001)  
(NR GREATER 1000) AND (NR LESS 2001)  
(NR GREATER 2000) AND (NR LESS 3001)  
(NR GREATER 3000) AND (NR LESS 4001)  
...  
;-)))

DD.20100826.1916.CEST

---

<div class="post-metadata">

### Author: ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)
#### Post date: [August 26, 2010, 5:11pm UTC](https://community.mp3tag.de/t/filtering-on-a-list-of-discs/10717/5 "2010-08-26T17:11:08Z")

</div>

> [@DetlevD](#):
>
> Did you try other values within the filter expression?

No, because I do need the view to include all the discs.

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [August 26, 2010, 11:51pm UTC](https://community.mp3tag.de/t/filtering-on-a-list-of-discs/10717/6 "2010-08-26T23:51:30Z")

</div>

> [@chrisjj](#):
>
> No, because I do need the view to include all the discs.

chrisjj, at first you wrote _"want an Mp3tag filter expression to target a set of thousands of them"_.

Sorry, it seems so, that I did not understand your problem.

DD.20100827.0350.CEST

Next two attempts.

This will match the complete set of tracks with a DISCID of the specified format.  
Filter: **DISCID MATCHES "^\d{14}-\d$"**

... will match ...  
00044006483428-1  
00044006483429-2  
99944006483430-0  
... and so on.

This will match the complete set of tracks with a 14-digit number in tag-field GTIN and a 1-digit number in tag-field DISCNUMBER.  
Filter: **(GTIN MATCHES "\d{14}") AND (DISCNUMBER MATCHES "\d")**

By the way ... there is an interesting resume and related links about the GTIN:  
[http://www.tango.info/wiki/GTIN](http://www.tango.info/wiki/GTIN)  
...  
[http://www.gepir.de/v31\_client/gtin.aspx](http://www.gepir.de/v31_client/gtin.aspx)  
[http://de.wikipedia.org/wiki/GTIN](http://de.wikipedia.org/wiki/GTIN)

DD.20100827.0958.CEST

---

<div class="post-metadata">

### Author: ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)
#### Post date: [August 27, 2010, 8:01am UTC](https://community.mp3tag.de/t/filtering-on-a-list-of-discs/10717/7 "2010-08-27T08:01:06Z")

</div>

> [@DetlevD](#):
>
> chrisjj, at first you wrote _"want an Mp3tag filter expression to target a set of thousands of them"_.
> 
> Sorry, it seems so, that I did not understand your problem.

Aologies - my fault for not being clear.

I have a list of thousands of disc ID e.g.

**00044006483428-1  
00044006483429-2  
99944006483430-0  
...**

and I want the view to show only all tracks matching them.

My best solution is a new-format filter string

**(GTIN IS 00044006483428 AND DISCNUMBER MATCHES ^1/) OR (GTIN IS 00044006483429 AND DISCNUMBER MATCHES ^2/) OR (GTIN IS 99944006483430 AND DISCNUMBER MATCHES ^0/) OR ...**

but I would like one better for filter string limit and execution time if possible.

> [@](#):
>
> By the way ... there is an interesting resume ... about the GTIN:  
> [http://www.tango.info/wiki/GTIN](http://www.tango.info/wiki/GTIN)

Thanks. I saw that when I last edited it 🙂

---

<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:22pm UTC](https://community.mp3tag.de/t/filtering-on-a-list-of-discs/10717/8 "2026-02-09T12:22:30Z")

</div>


