Page 1 of 1
Find v Exclude
Posted: 10 Apr 2016 20:40
by pat55
Finding all files that have cat and not dog works just fine with the following:
:cat AND NOT dog
I now want to exclude not only dog but also bird and bees.
What is the correct expression? My old birdbrain has failed in
reading the highly 'technical' stuff available that I'm sure has the answer.
Thanks in advance,
pat
Re: Find v Exclude
Posted: 10 Apr 2016 20:50
by highend
:cat AND NOT (bird OR dog OR bee)
Re: Find v Exclude
Posted: 10 Apr 2016 21:16
by pat55
Thanks - works like a charm.
I tried to exclude four items - it worked - is there a limit on number of exclusions
or on using caps or not? (I used all capital letters.)
p
Re: Find v Exclude
Posted: 10 Apr 2016 21:38
by highend
Lower / uppercase for and, or, not doesn't matter
Limit? I don't know, ask Don

Re: Find v Exclude
Posted: 10 Apr 2016 22:21
by admin
No limit.
Re: Find v Exclude
Posted: 11 Apr 2016 01:16
by kunkel321
admin wrote:No limit.
I think that was a challenge....
Re: Find v Exclude
Posted: 11 Apr 2016 09:21
by admin
OK, the edit box containing the name pattern is limited to 2 GB (1 billion characters), and XY supports "only" 256 nesting levels (logical parentheses).
Now you show me a name patterns that is too large for this AND that you understand.
