String Search

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
TestMeister
Posts: 237
Joined: 04 Feb 2008 20:17

String Search

Post by TestMeister »

Using the filter box, is it possible to search for a string of words within a file?
I have tried searching for a two-word string with/without and using single/double quotes without success.
I specify the folder, select Contents as the only filter and leave all other options at their default values.

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

Re: String Search

Post by highend »

?
has target
will find all (text) files with exactly this sequence in them

but not ones with:

Code: Select all

has no target
the target has no name
...
One of my scripts helped you out? Please donate via Paypal

WirlyWirly
Posts: 309
Joined: 21 Oct 2020 23:33
Location: XY 64-Bit | Win 10 @ 100% (3440x1440)

Re: String Search

Post by WirlyWirly »

I use quicksearch to perform content searches...

* /contents=Word1 Word2

or using Regex...

* /contents=".*Word1 Word2.*" /contflags=r

TestMeister
Posts: 237
Joined: 04 Feb 2008 20:17

Re: String Search

Post by TestMeister »

Major apologies in order...I was referring to the search within the UI Info Panel and was using it incorrectly. :oops:

This was my first attempt at searching with criteria found within a file. After selecting the Find Files tab, I remained on the default Name & Location tab where I assumed all parameters were to be entered and varied by selecting a different Filter. I completely missed the Contents tab (emoji needed for hand slapping forehead).

With the search properly configured and selecting Text & Binary type, it immediately found the target within the PDF I was trying to find.
The XY search is extremely fast!

Thanks for the responses and very sorry for the embarrassing oversight!

Post Reply