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

Hi,
I'm struggling to find a feature: how to make the search not stop at the end of the line (EOL) but continue until it hits the limit of the research (specially in case of regular expression).

For example I want this text:

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Scelerisque varius morbi enim nunc faucibus a pellentesque sit. Lorem ipsum dolor sit amet consectetur adipiscing elit pellentesque.

Integer malesuada nunc vel risus commodo viverra maecenas accumsan lacus. Ullamcorper morbi tincidunt ornare massa. Magnis dis parturient montes nascetur ridiculus.

With this regex ^(lorem).*(consectetur)$, to return:

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Scelerisque varius morbi enim nunc faucibus a pellentesque sit. Lorem ipsum dolor sit amet consectetur

In short, I want the search not to stop at the first EOL it reaches.
Is it possible?

by (35 points)

1 Answer

0 votes
 
Best answer

The Lite version matches regular expressions line-by-line, independently of surrounding lines. The Pro version, however, has a Multi-line Regex option which matches over an adjustable 'window' of lines, which by default is 10,000 lines.

Regular expression spanning lines

by (30.3k points)
Ho my, how did I miss that...
Thx a lot!
...