Find v Exclude

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
pat55
Posts: 287
Joined: 15 Mar 2016 22:27

Find v Exclude

Post 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

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Find v Exclude

Post by highend »

:cat AND NOT (bird OR dog OR bee)
One of my scripts helped you out? Please donate via Paypal

pat55
Posts: 287
Joined: 15 Mar 2016 22:27

Re: Find v Exclude

Post 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

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Find v Exclude

Post by highend »

Lower / uppercase for and, or, not doesn't matter

Limit? I don't know, ask Don :)
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 66672
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Find v Exclude

Post by admin »

No limit.

kunkel321
Posts: 664
Joined: 10 Jun 2012 03:45
Location: Near Seattle

Re: Find v Exclude

Post by kunkel321 »

admin wrote:No limit.
I think that was a challenge....
ste(phen|ve) kunkel
Scaling: Main monitor 125%, Secondary monitor on the right 100%
OS: Win 10. XYplorer version: Latest beta, unless specified.

admin
Site Admin
Posts: 66672
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Find v Exclude

Post by admin »

:biggrin:

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. :)

Post Reply