Page 1 of 1

AND operator when using Search file content

Posted: 21.12.2018, 18:40
by sdb
How do you use the operator AND when using the search „Search file content, Containing text:” using the xdoc2txt plugin ?

A space between two words like “hiking hotel” does not work. when using the Regular expression option, the OR operator works by typing in “hiking | hotel”. But I have not found out yet how you use AND with or without using regular expression.

Re: AND operator when using Search file content

Posted: 21.01.2019, 22:30
by Florent
Good question, even when not using xdoc2txt.

I did a bit of searching and found that this regex works (?s)(?=.*word1)(?=.*word2) regardless of the order of "word1" and "word2", and even if they are on separate lines.
It is cumbersome but it works.
If a simpler way exists, I would like to know too.

Re: AND operator when using Search file content

Posted: 23.01.2019, 12:52
by sdb
thx, for that hint florent. the AND really is practicable when finding is many pdfs...
maybe marek will implement an easier solution for this.
you can use totalcommander or adobe reader advanced search for that too, bye the way