Search

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
sryap
Posts: 1
Joined: 15 Jul 2009 21:07

Search

Post by sryap »

When searching for a word inside a file why are .jpg files show up on the search result?

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Search

Post by zer0 »

sryap wrote:When searching for a word inside a file why are .jpg files show up on the search result?
Hello and welcome to the forums!

My first guess of an answer to that, is that when you have a look at Raw View of an image file, JPG in this context, there is some metadata that is being stored within the file. Perhaps, when searching for a string inside a file, XY also reads that metadata and, if there's a match, it includes that file in the search results list. That's just a guess though and I'll stand corrected if that is not so. Of course, you can exclude JPGs from being shown by using the following search criteria:

Code: Select all

!>.*(\.jpg)$
This will find all files apart from JPGs, so adopt it to your needs and you won't see them again :)
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

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

Re: Search

Post by admin »

zer0 wrote:
sryap wrote:When searching for a word inside a file why are .jpg files show up on the search result?
Hello and welcome to the forums!

My first guess of an answer to that, is that when you have a look at Raw View of an image file, JPG in this context, there is some metadata that is being stored within the file. Perhaps, when searching for a string inside a file, XY also reads that metadata and, if there's a match, it includes that file in the search results list. That's just a guess though and I'll stand corrected if that is not so. Of course, you can exclude JPGs from being shown by using the following search criteria:

Code: Select all

!>.*(\.jpg)$
This will find all files apart from JPGs, so adopt it to your needs and you won't see them again :)
It does not have to be a RegExp. *.jpg with "Invert" checked will do as well, or:

Code: Select all

!*.jpg

Post Reply