Exclusion List Regex issues

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
soul4kills
Posts: 14
Joined: Mon Sep 04, 2023 4:12 am

Exclusion List Regex issues

Post by soul4kills »

I'm a bit new to regex but I think I came up with a proper way of matching all files but exclude any ending in (.exe).

regex:.*\\steamapps\\common\\(?!.*\.exe$)

So I test it out in the search and it works to find everything but any file ending in (.exe).
I add that to my exclusion list filter. It doesn't work as expected.

My expectation is that if i query (.exe) or (*), it should return all files that end with (.exe). But results are 0. What am I doing wrong?
therube
Posts: 4967
Joined: Thu Sep 03, 2009 6:48 pm

Re: Exclusion List Regex issues

Post by therube »

Does it have to be regex:?

Would
!ext:exe
do it - even if used in conjunction with regex: (sans the (?!.*\.exe$) part).
soul4kills
Posts: 14
Joined: Mon Sep 04, 2023 4:12 am

Re: Exclusion List Regex issues

Post by soul4kills »

I figured it out. I was putting my filter in the "Folder Exclusions" rather than the "File Exclusions".

But your solution works too and is actually easier. I'm just trying to learn regex so i get better at it.
Post Reply