Filtering hash style files? Regex needed.

Discussion related to "Everything" 1.5.
Post Reply
abr01
Posts: 201
Joined: Tue May 01, 2018 4:57 pm

Filtering hash style files? Regex needed.

Post by abr01 »

In one of my DAWs i keep getting some sort of by-product audio files, named like in the example below. Even though some of my regular files also may contain a few numbers, these have plenty of them. Is there a way to exclude them from my filter, for example using REGEX? None of my regular files should contain at most five numbers, so every count above that i want to be filtered.

d3e9446ac40d45e9a768a60f0a309c84.wav
void
Developer
Posts: 19863
Joined: Fri Oct 16, 2009 11:31 pm

Re: Filtering hash style files? Regex needed.

Post by void »

Please try the following result omission filter:

regex:^[a-f0-9]{32}\.wav$


regex: == enable regular expressions.
^ == match the start of the filename.
[a-f0-9] == match a-f or 0-9
{32} == match the previous element 32 times.
\. == match a single literal .
wav == match the text wav
$ == match the end of the filename.

Enable result omissions under the Index menu.
Add a result omission filter under the Index menu.
Result omissions can be organized under the Index menu.



Alternatively, the regex filter can also be used as an exclude filter under Tools -> Options -> Exclude -> Exclude files.
Last edited by void on Wed Jun 03, 2026 12:00 am, edited 1 time in total.
Reason: added inline code around regex:...
abr01
Posts: 201
Joined: Tue May 01, 2018 4:57 pm

Re: Filtering hash style files? Regex needed.

Post by abr01 »

Works perfectly! Thank you very much. In case i'd need to see the files for a cleanup, i can pause the omission filter.

:idea: :arrow: 8-)
abr01
Posts: 201
Joined: Tue May 01, 2018 4:57 pm

Re: Filtering hash style files? Regex needed.

Post by abr01 »

That's strange, even though the filter is present and active, i find many of these results again. Is this a bug, maybe? I've also tried to put that Regex in the "Exclude FIles" menu, but with the same result.

image.png
image.png (145.13 KiB) Viewed 64 times
void
Developer
Posts: 19863
Joined: Fri Oct 16, 2009 11:31 pm

Re: Filtering hash style files? Regex needed.

Post by void »

Please send a screenshot of your filter (Search -> Organize Filters -> Select filter -> Edit)
Please send a screenshot of Tools -> Options -> Exclude.
abr01
Posts: 201
Joined: Tue May 01, 2018 4:57 pm

Re: Filtering hash style files? Regex needed.

Post by abr01 »

Sure.

image.png
image.png (26.63 KiB) Viewed 57 times
image.png
image.png (26.69 KiB) Viewed 57 times
void
Developer
Posts: 19863
Joined: Fri Oct 16, 2009 11:31 pm

Re: Filtering hash style files? Regex needed.

Post by void »

Thank you for the screenshots.

Normally filters are wildcards patterns only.

Please prefix the filters with
regex:


For example:

Code: Select all

regex:^[a-f0-9]{32}\.wav$
abr01
Posts: 201
Joined: Tue May 01, 2018 4:57 pm

Re: Filtering hash style files? Regex needed.

Post by abr01 »

Oh sorry, you'r right of course.

I must have interpreted the regex: part as "here comes the Regex now:". :oops:

All good now, thank you!
Post Reply