Finding multiple file types containing specific text

Dopus 12.25 x64

In the below query all the files are "found" but the "and contains sercom" is ignored. Have I missed something?

Thanks
John

That search means this:

(*.cpp or (*.ino or (*.h and contains "sercom")))

You generally need to use sub-clause if you want to combine AND and OR conditions. (Standard boolean logic.)

But in this case you can do things even easier:

Name *.(cpp|ino|h)
And
Contains "sercom"

Full examples in this almost identical thread from a few hours earlier: How to find multiple file types

Leo,

Sorry ot bother you. I did see the earlier post but I must have been focused on the "AND contains" that the other did not sink in.

John

1 Like