Regex with negativ look ahead

General discussion related to "Everything".
Post Reply
Mokhtar
Posts: 1
Joined: Wed Mar 15, 2017 12:24 pm

Regex with negativ look ahead

Post by Mokhtar »

Hello, can anyone tell me how search for certain file names in certain paths excluding some directories? Regex is good but I can't use it with negative look ahead. I am doing Java and want to hit all files ignore ing generated.

Thanks a lot!
Mokhtar
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: Regex with negativ look ahead

Post by void »

To search inside a list of folders, search for:
<C:\folder\subfolder\|"C:\folder\folder with spaces\"|"C:\program files\"|c:\Users\>

< > = group terms
| = OR

To exclude a list of folders, search for:
!<C:\folder\subfolder\|C:\windows\>

! = NOT

Combining these together:
Include C:\Windows, but exclude C:\windows\system32
c:\windows\ !c:\windows\system32

SPACE = AND

http://www.voidtools.com/support/everything/searching/
Post Reply