0 votes

I want to be able to search for two words on the same line:
I don't care if those two words are in the same file but not on the same line.

Example 1:
I want to see this file

File 1 start
Human sacrifice, dogs and cats living
together, mass hysteria
File 1 end

Example 2:
I do NOT want to see
File 2 start
Human sacrifice, dogs and
cats living together, mass hysteria
File 2 end

I don't see how to do this in either Agent Ransack or FileLocator.

Thanks in advance,

Chad Helton

closed with the note: Perfect answer by Dave.  (Kudos on the answer *and* understanding me!)
by (25 points)

1 Answer

+1 vote

In FileLocator Pro there's an option 'Line-by-Line'. If that is set the expression must be matched on a single line for the line to be a valid hit:

Line-by-Line

by (30.3k points)
...