Tinderbox Forum

Using Boolean Operators AND and NEAR in find?

What is the best regex expression to use for the boolean operators AND and NEAR in find? I realize for complex searches Agents would be better, but I am trying to create a TextExpander snippets in RegEx to quickly pop in find when I need to use AND and/or Near.

Thus far, doing a google search, I have come up with these two options. I wanted to confirm if this is the best practice in Tinderbox.

Thanks in advance

AND: (?=.*word1)(?=.*word2)(?=.*word3)
NEAR/20: \bsearchWord1\W+(?:\w+\W+){1,20}?searchWord2\b