AND operator when using Search file content

Discussion, questions and support.
Post Reply
Message
Author
sdb
Posts: 137
Joined: 02.10.2011, 07:11

AND operator when using Search file content

#1 Post by sdb » 21.12.2018, 17:40

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.

Florent
Posts: 14
Joined: 27.11.2018, 21:43

Re: AND operator when using Search file content

#2 Post by Florent » 21.01.2019, 21:30

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests