# Filter to Exclude Filenames

**URL:** <https://community.mp3tag.de/t/filter-to-exclude-filenames/16887>\
**Category:** Support\
**Created:** [May 6, 2015, 4:52pm UTC](https://community.mp3tag.de/t/filter-to-exclude-filenames/16887 "2015-05-06T16:52:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpetrula](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/8797f3/32.png) [@jpetrula](https://community.mp3tag.de/u/jpetrula)\
**Post date:** [May 6, 2015, 4:52pm UTC](https://community.mp3tag.de/t/filter-to-exclude-filenames/16887/1 "2015-05-06T16:52:32Z")

</div>

In a folder, I have MP3 files which look like the following:

MyFile.orig.MP3  
MyFile.MP3  
MyFile2.orig.MP3  
MyFile2.MP3  
etc.

I want to see all the MP3 files except files with ".orig." in the filename.

What filter expression would work?

Thanks in advance.

---

<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:** [May 6, 2015, 4:56pm UTC](https://community.mp3tag.de/t/filter-to-exclude-filenames/16887/2 "2015-05-06T16:56:26Z")

</div>

NOT %\_filename% HAS ".orig"

---

<div class="post-metadata">

**Author:** ![jpetrula](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/8797f3/32.png) [@jpetrula](https://community.mp3tag.de/u/jpetrula)\
**Post date:** [May 6, 2015, 5:22pm UTC](https://community.mp3tag.de/t/filter-to-exclude-filenames/16887/3 "2015-05-06T17:22:33Z")

</div>

Yes - that works.

Thank you!

---

<div class="post-metadata">

**Author:** ![djScottie](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/7ab992/32.png) [@djScottie](https://community.mp3tag.de/u/djScottie)\
**Post date:** [April 1, 2022, 1:25pm UTC](https://community.mp3tag.de/t/filter-to-exclude-filenames/16887/4 "2022-04-01T13:25:17Z")

</div>

I am happy to have found this.  
I need to persistently omit the Mac sidecar files (when viewing on the PC), which start with a dot and underscore, i.e. ".\_filename.ext".  
Can it be implemented ON start of the app?

---

<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:** [April 1, 2022, 1:32pm UTC](https://community.mp3tag.de/t/filter-to-exclude-filenames/16887/5 "2022-04-01T13:32:19Z")

</div>

You could apply a filter like:  
`NOT %_filename% MATCHES "^\..*"`

---

<div class="post-metadata">

**Author:** ![djScottie](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/7ab992/32.png) [@djScottie](https://community.mp3tag.de/u/djScottie)\
**Post date:** [April 1, 2022, 2:00pm UTC](https://community.mp3tag.de/t/filter-to-exclude-filenames/16887/6 "2022-04-01T14:00:00Z")

</div>

Understood. But where can I setup that filter so it runs by default with the start of the program?

---

<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:** [April 1, 2022, 2:01pm UTC](https://community.mp3tag.de/t/filter-to-exclude-filenames/16887/7 "2022-04-01T14:01:16Z")

</div>

enter it and don't remove it.  
MP3tag remembers the currently set filter between sessions.

---

<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 10, 2024, 2:51pm UTC](https://community.mp3tag.de/t/filter-to-exclude-filenames/16887/8 "2024-02-10T14:51:53Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
