Searching for "Tom", "Dick" but not "Harry" across all notes in a vault

What I’m trying to do

Hello everybody. First post here so be gentle ;0)
I have been carrying out AND searches successfully (including regex searches) but am unsure about excluding particular strings. How, for example, can I search for “Tom” and “Dick” but not “Harry” across all notes in a vault?
TIA,
Hugh

tom dick -harry will search for notes with tom and dick, but not harry.

(tom OR dick) -harry will search for notes with tom or dick, but no harry.

Will one of those work? (I think I got that right😅)

To exclude, or negate, a word from the search results, add a hyphen (-) in front of it

https://help.obsidian.md/Plugins/Search

3 Likes

Excellent, thank you!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.