How can I filter files NOT containing some text?

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

Post Reply
Robert2
Gold Member
Gold Member
Posts: 598
Joined: 2004 Jun 17, 15:39

How can I filter files NOT containing some text?

Post by Robert2 » 2014 May 08, 16:36

Hi,
I might have missed something staring me in the face but is there a quick easy way to select/filter only the files NOT containing some text?
TIA.
Robert

Kilmatead
Platinum Member
Platinum Member
Posts: 4569
Joined: 2008 Sep 30, 06:52
Location: Dublin

Re: How can I filter files NOT containing some text?

Post by Kilmatead » 2014 May 08, 17:16

Using the <Ctrl+F> search, just insert a "-" sign in front of whatever text you don't want to match (be that when searching within filenames or contents).

However, if you're referring to the "quick search" bar thingy, that trick doesn't seem to work, so you could always fall back to the "Dunce's Approach" (which I have a patent for, by the way) which is to just search for what you don't want, and then invert the selections with Mark -> Invert Selection <Num-*> :wink: (But don't let anyone see you do that, 'cause it's more humiliating than coming to work wearing the same suit as the day before, and being distinctly unshaven to boot.)

fgagnon is better at answering questions like this, as he knows all the funky quirky tricky stuff that I can never remember. :D

Robert2
Gold Member
Gold Member
Posts: 598
Joined: 2004 Jun 17, 15:39

Re: How can I filter files NOT containing some text?

Post by Robert2 » 2014 May 08, 17:53

Thanks, Kilmatead.
I'll use your first method. It gives perfect results.
I think the "Dunce's Approach" would not work for the kind of search I have in mind.
For example, I just wanted to search for "*.htm" files not containing class="toc".
I tried both Ctrl+F and the visual filter. But when I got a Scrap pane or a filtered pane with the files that did contain class="toc", I got nothing after I inverted the selection. The filtered list got highlighted, that's all. The files not containing class="toc" remained hidden.
Cheers,
Robert

Kilmatead
Platinum Member
Platinum Member
Posts: 4569
Joined: 2008 Sep 30, 06:52
Location: Dublin

Re: How can I filter files NOT containing some text?

Post by Kilmatead » 2014 May 08, 18:10

The Dunce's Approach is only useful when using the Quick-Filter bar with results set on "Select"; as in when you're searching for filenames in the active-pane and you just type until the universe tells you to stop. When you referred to quick-filtering in your original post, I just guessed. :shrug:

Certainly, for more complex (multi-conditional) searches (such as your .htm example), <Ctrl+F> is the more useful devil you want to know.

User avatar
fgagnon
Site Admin
Site Admin
Posts: 3737
Joined: 2003 Sep 08, 19:56
Location: Springfield

Re: How can I filter files NOT containing some text?

Post by fgagnon » 2014 May 09, 12:08

Kilmatead wrote: fgagnon is better at answering questions like this, as he knows all the funky quirky tricky stuff that I can never remember. :D
Having no need for the f-q-t stuff for a few years, and little time to play with it, I cannot remember much of it any more myself. :(

Kilmatead
Platinum Member
Platinum Member
Posts: 4569
Joined: 2008 Sep 30, 06:52
Location: Dublin

Re: How can I filter files NOT containing some text?

Post by Kilmatead » 2014 May 09, 12:53

Ah, say it isn't so! True, d'Artagnan's shoulders aren't what they used to be, but the regiment needs its champion! Who else will fight all the bad guys?

Image

Post Reply