I wish to find files containing a text but not a specific variation of it. I've tried playing with the Find Files dialog (i'm not sure if regex is supported in the Find Text field) without luck. I also tried Everything but couldn't make it work either. Can someone please help?
Example of what i'm trying to achieve:
Find files containing text "<LINK>" but not "<LINK>Properties"
Search files containing certain text but not certain other text
Moderators: Hacker, petermad, Stefan2, white
Search files containing certain text but not certain other text
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
Re: Search files containing certain text but not certain other text
Find text:
[X] RegEx (2)
Code: Select all
<LINK>(?!Properties)
Re: Search files containing certain text but not certain other text
Great, thanks! I was trying to use subexpressions but it seems i was doing something wrong.
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
Re: Search files containing certain text but not certain other text
Be aware that the used regex library by TC has a limitation that a look ahead assertion must be at the end of the regular expression (and a look behind assertion must be at the start).
Re: Search files containing certain text but not certain other text
Ok, thanks again for the info.
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
Re: Search files containing certain text but not certain other text
2wanderer
Just out of interest:
Does this query also work in Everything 1.5a?
; Operator: < > Grouping
; Use a * before the : to treat the rest of the search as the value:
Just out of interest:
Does this query also work in Everything 1.5a?
Code: Select all
"Path" content*:<LINK>
; Use a * before the : to treat the rest of the search as the value: