# Need help with filter expression

**URL:** https://community.mp3tag.de/t/need-help-with-filter-expression/10607
**Category:** Support
**Created:** [July 2, 2010, 5:30am UTC](https://community.mp3tag.de/t/need-help-with-filter-expression/10607 "2010-07-02T05:30:01Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Oblio](https://community.mp3tag.de/user_avatar/community.mp3tag.de/oblio/32/4828_2.png) [@Oblio](https://community.mp3tag.de/u/Oblio)
#### Post date: [July 2, 2010, 5:30am UTC](https://community.mp3tag.de/t/need-help-with-filter-expression/10607/1 "2010-07-02T05:30:01Z")

</div>

This should be easy but I can't seem to get it. I want to find all files with any empty field. I have tried these

- IS ""
- MATCHES ""
- MATCHES ^$

---

<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: [July 2, 2010, 6:20am UTC](https://community.mp3tag.de/t/need-help-with-filter-expression/10607/2 "2010-07-02T06:20:00Z")

</div>

- MATCHES ^$ or \* MATCHES (?-m)^$  
works but you should know that Mp3tag doesn't necessarily display empty tag fields so you can't filter them. (I think it can only show empty flac tag fields and no empty ID3v2 tags for example)

---

<div class="post-metadata">

### Author: ![Oblio](https://community.mp3tag.de/user_avatar/community.mp3tag.de/oblio/32/4828_2.png) [@Oblio](https://community.mp3tag.de/u/Oblio)
#### Post date: [July 6, 2010, 3:44am UTC](https://community.mp3tag.de/t/need-help-with-filter-expression/10607/3 "2010-07-06T03:44:34Z")

</div>

Thanks dano,

I forgot that mp3tag deletes empty fields so I actually needed MISSING.

But I did test it and found that for example %track% MATCHES ^$ does work, but \* MATCHES ^$ doesn't work. Are you sure it worked for you?

---

<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: [July 6, 2010, 5:09am UTC](https://community.mp3tag.de/t/need-help-with-filter-expression/10607/4 "2010-07-06T05:09:39Z")

</div>

_%track% MATCHES ^$_ finds files with no track tags because surrounded by percent chars %track% is evaluated as format string and so creates an empty string which is matched by ^$  
But if you use _track MATCHES ^$_ it will not find files with no track tag but files with an empty track tag.

So _\* MATCHES ^$_ also finds only files with empty tags or with empty lines but not with missing tags.  
If it found files with missing tags it would find any file because the number of missing tags on a file is like infinite.

---

<div class="post-metadata">

### Author: ![Oblio](https://community.mp3tag.de/user_avatar/community.mp3tag.de/oblio/32/4828_2.png) [@Oblio](https://community.mp3tag.de/u/Oblio)
#### Post date: [July 7, 2010, 4:35am UTC](https://community.mp3tag.de/t/need-help-with-filter-expression/10607/5 "2010-07-07T04:35:40Z")

</div>

Dano, I have 2 mp3 files, one with empty track field and one with missing track field.

track MATCHES ^$ finds neither  
%track% MATCHES ^$ finds both

track IS "" finds neither  
%track% IS "" finds both

- MATCHES ^$ finds neither
- MATCHES (?-m)^$ finds neither

track MISSING finds both  
%track% MISSING finds both

My conclusion - Mp3tag does not distinguish between empty fields and missing fields in mp3 files (maybe it can for flac files?)

Therefore just as \* cannot be used to search for missing fields (as you pointed out), neither can it find empty mp3 fields. When the tag is saved any empty fields are deleted anyway. This all seems logical and reasonable.

---

<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/need-help-with-filter-expression/10607/6 "2026-02-09T12:22:28Z")

</div>


