Find files that are NOT of a specific type extension

Started by maestralien, August 20, 2013, 18:47:03

Previous topic - Next topic

maestralien


Jungle

Type e.g. -*.mp3 in the filter field. Minus sign means exclude.
Is it what you need?

maestralien

Cool, but it is not working.. how and where to type it exactly?

maestralien

Well, I just discovered that it must be typed simply as: -mp3

If you use -*.mp3 it does not work. Can you confirm?

Jungle

-*.ext does hide items with ext extension.
-ext hides items which contain ext in filename.

maestralien

Ok thanks.

Now another question: it should look inside all sub-folders...

Jungle

Quote from: maestralien on August 20, 2013, 20:07:09Now another question: it should look inside all sub-folders...
Try use File search with RegExp ((?!\.ext).)*$

Jungle

Mathias,
I think somthing like "Exclude" or "Not match" checkbox in the Look for panel of Find Files dialog could be useful. It should "invert" search. I.e. if search pattern is "bla-bla*.doc" then all files should be found except matching this pattern.
It sometimes could be easier than using RegExp.

Mathias (Author)

I will take a look and see if it is possible to add something like that

maestralien

Quote from: Jungle on August 21, 2013, 05:29:05
Mathias,
I.e. if search pattern is "bla-bla*.doc" then all files should be found except matching this pattern.
It sometimes could be easier than using RegExp.

I agree, that's what I meant..

maestralien

Quote from: Jungle on August 20, 2013, 21:06:50
Try use File search with RegExp ((?!\.ext).)*$

Thanks, but it looks little bit too math and moreover it seems not working.. anything simpler? Maybe add a simple option on MC search?

maestralien

However, I must say that Windows Explorer works good in this "exclude" search, and simply MC should use the same method.. if something works, useless to change... just keep it  ;)

Jungle

Quote from: maestralien on August 21, 2013, 10:23:26Thanks, but it looks little bit too math and moreover it seems not working..
I've tried it and it works. But it is case sensitive

maestralien

I'm trying this: ((?!\.avi).)*$

In the Video folder there are several video formats (avi, mp4, wmv, ...), but it returns no results. Why?

Jungle


maestralien

I did. On your example, I see that you are not looking in sub-folders too.

Please, repeat the same example searching from the root (C:\). Can you get the results? I cannot.

Jungle

#16
First pic - all files
Second pic - all except *.avi

As you can see video.avi is absent on the second pic whereas other files are the same.

**

Mathias,
sorting is reset after new search. I mean if you e.g. set sorting to Ext column, then clear results and perform new search, new results are NOT sorted by Ext. It would be great to keep sorting order.

maestralien

I do not get any results! Please look attached.
My MC v. is 3.2.1 b.1432

Jungle

Quote from: maestralien on August 21, 2013, 13:36:30My MC v. is 3.2.1 b.1432
Probably this is because new beta has updated RegExp engine.
So this is my fault - i hadn't tested on current stable version. I apologize.

maestralien

Ok no problem, we discovered the issue ...
So I could install the latest beta ...