Sublime Forum

Best way to do boolean searches on files and file contents?

#1

Hi all,

Is there any way to do searches that combine terms, like you would in a search engine?

For example, let’s say I wanted to look for:

“Apples” AND “kinds of trees” AND NOT “computer”

I know I can use regex, but that’s messy. I’m looking for something that’s more familiar. This may not exist. But I’m just asking.

0 Likes

#2

Searching in what context? Whether the terms are contained anywhere in the file or a single line?
You might want to look into chained grep calls here.

0 Likes

#3

Anywhere in the file. I’ll looked at chained grep searches. Thanks.

0 Likes