Page 1 of 1
Is it possible to select multiple types in a search?
Posted: 23 Jan 2016 20:46
by forgottenit
Hi.
I am using version 145.30.0300. In the search feature, under name & location, you can specify image file or office file etc. Is it possible to select more than one of those?
I don't mean just searching for multiple specific extensions; after all 'office file' covers a shedload of extensions. How can I do that?
Many thanks
Re: Is it possible to select multiple types in a search?
Posted: 23 Jan 2016 21:06
by highend
Welcome to the forum.
Unfortunately, this isn't possible. It can be done e.g. via quicksearch but only in the current beta version (v16.20.0006)
Re: Is it possible to select multiple types in a search?
Posted: 24 Jan 2016 16:48
by forgottenit
Ok I will check out the Beta. Thanks.
Re: Is it possible to select multiple types in a search?
Posted: 25 Jan 2016 12:56
by TheQwerty
For the record prior to v16.20.0006 you could accomplish this in an ugly convoluted way via quick search using:
Code: Select all
?query & (<get GenericFileType {:Audio} " | "> | <get GenericFileType {:Office} " | ">)
This works in the address bar and quick search dialog, but not in the Find Files tab (the variables are not resolved).
Since v16.20.0006 the same can be achieved using the new
/types switch:
This also works well if you only want to search one of those filter types but want to include a few additional extensions as well:
Re: Is it possible to select multiple types in a search?
Posted: 25 Jan 2016 13:03
by highend
Further, you can use this switch within the Name field of the Find Files tab.
Not in my XY version
The screenshot shows that you got the search result from a quick search, not by clicking on the "Find now" button (which will list practically everything instead of items of the used /types=....)
Re: Is it possible to select multiple types in a search?
Posted: 25 Jan 2016 13:14
by TheQwerty
highend wrote:Further, you can use this switch within the Name field of the Find Files tab.
Not in my XY version
The screenshot shows that you got the search result from a quick search, not by clicking on the "Find now" button (which will list practically everything instead of items of the used /types=....)
What screenshot?
Indeed my test was flawed - I had clicked "Find Now" but didn't give it something to not find.
Re: Is it possible to select multiple types in a search?
Posted: 02 Feb 2016 19:34
by admin
A bug!

The switch should work in Find Files just like in Quick Search, of course! Fix comes...
Re: Is it possible to select multiple types in a search?
Posted: 19 Sep 2020 13:33
by David.P
Hello all,
is this still not (easily) possible?
I'd like to search for
*.doc and
*.docx and
*.txt files simultaneously if possible.
I tried this in the Name field of the Search dialog:
...but it didn't seem to work.
Thanks for ideas!
Edit: Oh wow it
DOES work now. I had erroneously set the file size set to something very large.
So as usual, XYplorer simply ROCKS.
Thanks!
Re: Is it possible to select multiple types in a search?
Posted: 19 Sep 2020 14:27
by highend
would work as well
or an even shorter way (regex)
Re: Is it possible to select multiple types in a search?
Posted: 19 Sep 2020 15:31
by David.P
Thanks very much highend
Re: Is it possible to select multiple types in a search?
Posted: 19 Sep 2020 16:01
by RalphM
Shouldn't the regex rather be like this?
Re: Is it possible to select multiple types in a search?
Posted: 19 Sep 2020 16:16
by highend
No, because that would search for .do, .doc and .txt
It's a regex, not a dos expression
Re: Is it possible to select multiple types in a search?
Posted: 19 Sep 2020 18:42
by David.P
Regexes are a case of
Clarke's third law and people who can do them are magicians -- for me personally as a Regex dummie
Re: Is it possible to select multiple types in a search?
Posted: 20 Sep 2020 04:40
by RalphM
highend wrote: ↑19 Sep 2020 16:16
No, because that would search for .do, .doc and .txt
It's a regex, not a dos expression
Okay, my bad. I crawl back under my regex stone.