# Filtering doubled value

**URL:** <https://community.mp3tag.de/t/filtering-doubled-value/17380>\
**Category:** Support\
**Created:** [November 15, 2015, 7:23pm UTC](https://community.mp3tag.de/t/filtering-doubled-value/17380 "2015-11-15T19:23:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zerow](https://community.mp3tag.de/user_avatar/community.mp3tag.de/zerow/32/11379_2.png) [@Zerow](https://community.mp3tag.de/u/Zerow)\
**Post date:** [November 15, 2015, 7:23pm UTC](https://community.mp3tag.de/t/filtering-doubled-value/17380/1 "2015-11-15T19:23:24Z")

</div>

Hi

I need to find all the files that have at least two cases of "##3X" in the GENRE field; where X is any digit ranging from 0 to 9

So if a file has only "##33" or something like "##33 ##50" - it is not my concern

But if a file something like "##33 ##50 ##30" ## or "##31 ##35 ##ACTION ##39" - then it must be singled out

I've tried

```
GENRE HAS ##3 AND GENRE HAS ##3

```

but that code works exactly the same as

```
GENRE HAS ##3

```

[which is not enough]

How do I tell Mp3tag to look twice for the "##3"?

---

<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:** [November 15, 2015, 7:26pm UTC](https://community.mp3tag.de/t/filtering-doubled-value/17380/2 "2015-11-15T19:26:21Z")

</div>

What about  
%genre% MATCHES "3#\d+.\*3#\d+"

I can't test this as I have only genuine genres in my collection.

---

<div class="post-metadata">

**Author:** ![Zerow](https://community.mp3tag.de/user_avatar/community.mp3tag.de/zerow/32/11379_2.png) [@Zerow](https://community.mp3tag.de/u/Zerow)\
**Post date:** [November 15, 2015, 7:52pm UTC](https://community.mp3tag.de/t/filtering-doubled-value/17380/3 "2015-11-15T19:52:15Z")

</div>

That does nothing. Everything gets filtered out [even files without any value]; I get an empty list

---

<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:** [November 15, 2015, 7:56pm UTC](https://community.mp3tag.de/t/filtering-doubled-value/17380/4 "2015-11-15T19:56:22Z")

</div>

> [@zerow](#):
>
> That does nothing. Everything gets filtered out [even files without any value]; I get an empty list

You should know you syntax better and see that it should read:  
%genre% MATCHES "##3\d+.\*##3\d+"

---

<div class="post-metadata">

**Author:** ![Zerow](https://community.mp3tag.de/user_avatar/community.mp3tag.de/zerow/32/11379_2.png) [@Zerow](https://community.mp3tag.de/u/Zerow)\
**Post date:** [November 15, 2015, 8:32pm UTC](https://community.mp3tag.de/t/filtering-doubled-value/17380/5 "2015-11-15T20:32:25Z")

</div>

> [@ohrenkino](#):
>
> You should know you syntax better and see that it should read:  
> %genre% MATCHES "##3\d+.\*##3\d+"

This seems to work; than you very much

And I can even extend it to

```
%genre% MATCHES "##3\d+.*##3\d+.*##3\d+"

```

to deal in the first place with the most notoriuos [at least tripple] cases

---

<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:** [November 16, 2015, 5:58am UTC](https://community.mp3tag.de/t/filtering-doubled-value/17380/6 "2015-11-16T05:58:02Z")

</div>

> [@zerow](#):
>
> ..And I can even extend it to
> 
> ```
> %genre% MATCHES "##3\d+.*##3\d+.*##3\d+"
> 
> ```
> 
> to deal in the first place with the most notoriuos [at least tripple] cases

The records with 3 repetitions should be included in the list with 2 repetitions.

---

<div class="post-metadata">

**Author:** ![Zerow](https://community.mp3tag.de/user_avatar/community.mp3tag.de/zerow/32/11379_2.png) [@Zerow](https://community.mp3tag.de/u/Zerow)\
**Post date:** [November 16, 2015, 8:15pm UTC](https://community.mp3tag.de/t/filtering-doubled-value/17380/7 "2015-11-16T20:15:22Z")

</div>

> [@ohrenkino](#):
>
> The records with 3 repetitions should be included in the list with 2 repetitions.

Yes it does

I only used that version for triplets to take care of them in the first place

No I will take care of the rest

---

<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:25pm UTC](https://community.mp3tag.de/t/filtering-doubled-value/17380/8 "2026-02-09T12:25:57Z")

</div>

Closed on February 9, 2026, 12:25pm UTC


