My issue is similar to this.
viewtopic.php?f=5&t=6905&p=22142&hilit=exclude#p22142
What i'm trying to accomplish is to exclude all files & folders under C:\Windows
but want to include C:\Windows\Fonts
Can someone guide me to / create a regex filter for this (to use in Exclude->Filter)?
Thanks.
[Solved] regex to exclude folder (& include a child folder)
[Solved] regex to exclude folder (& include a child folder)
Last edited by vanisk on Tue Jan 01, 2019 10:54 pm, edited 1 time in total.
Re: regex to exclude folder (& include a child folder)
try it with this exclusion:
Add filter: to exclude all folders under c:\Windows except \Fonts
Exclude files: to exclude all files that have C:\Windows as a parent
Add filter:
regex:^c:\\windows\\(?!Fonts?$)
Exclude files:
regex:^c:\\windows\\[^\\]*$