Welcome to the Mythicsoft Q&A site for:

- Agent Ransack
- FileLocator Lite
- FileLocator Pro

Please feel free to ask any questions on these products or even answer other community member questions.

Useful Links:

- Contact Us
- Help Manuals
- Mythicsoft Home
0 votes

The Boolean search works fine across the whole file but is there a way to do boolean searches within LINES in Agent Ransack (especially AND searches) -- and return only LINES with target terms in the search results?

asked by (1.6k points)

2 Answers

0 votes

Boolean searching on a line-by-line basis is only supported in FileLocator Pro. However, you might be able to achieve what you want using a regex, which always match on a line-by-line basis e.g.

word1 AND word2

is the same as the regex:

(word1.*word2)|(word2.*word1)

answered by (58.6k points)
0 votes

FTR, this regex will find word1 and word2 in any order in Agent Ransack:

(?=.*word1)(?=.*word2)

It can be expanded as required by appending (?=.*word3) for additional criteria.

answered by (1.2k points)

Nice solution using look-aheads, thanks!

...