The folder is:
Code: Select all
C:\Users\User1\AppData\Local\Lazy Nezumi Pro\presetsHow Can I go about making an acception for this folder to be shown in my search result while still ommiting the entire Appdata folder? Thanks!
Code: Select all
C:\Users\User1\AppData\Local\Lazy Nezumi Pro\presets!C:\Windows\ | c:\windows\temp\ | <file: parent:c:\windows> | <file: parent:c:\windows\system32>
Code: Select all
regex:c:\\windows\\(?!temp\\)(?!system32\\[^\\]*$)(?![^\\]*$)Code: Select all
regex:c:\\windows\\(system32\\|(?!system32)(?!temp))You need to escape the backslashes in the path with an extra \ and use "" for the whole regualr expression as the path contains a space:phil2search wrote: Sat Jul 02, 2022 2:11 pm regex:C:\\ProgramData\\(?!Microsoft\Windows\Start Menu\Programs(\\|$))
should exclude all programdata except the start menu programs folders
except that I still see all files in programdata.
Code: Select all
regex:"C:\\ProgramData\\(?!Microsoft\\Windows\\Start Menu\\Programs(\\|$))"Code: Select all
c:\programdata !regex:"C:\\ProgramData\\(?!Microsoft\\Windows\\Start Menu\\Programs(\\|$))"Code: Select all
regex:C:\\ProgramData(?!.*lnk$)(.*)Code: Select all
regex:"C:\\ProgramData(?!.*lnk$)(.*)"Code: Select all
somesearch !regex:someexprCode: Select all
regex:someexprCode: Select all
!regex:C:\\Program(?!.*(lnk|exe)$)(.*) !regex:C:\\Users\\(.*)\\AppData Code: Select all
regex:C:\\ProgramData\\(?!Microsoft$)(?!Microsoft\\Windows$)(?!Microsoft\\Windows\\Start Menu$)(?!Microsoft\\Windows\\Start Menu\\Programs(\\|$))I thought about this. Unfortunately, yes. There are too many exceptions (and exceptions to these exceptions) possible to be handled in a GUI. That would definitely lead to what I call a "spaghetti-solution".
Turns out that the better way in Omit REsult filters is to stay away from quotes! Didn't know that. Thank you for this lesson! (hope I don't forget this for the next time..)