Find items on a single line, not in the entire file? [closed]

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!)
asked May 20, 2016 by Chad Helton (40 points)
closed May 24, 2016 by Chad Helton

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

answered May 20, 2016 by dave (50,950 points)
...