Multiple option in Contents tab of Find Files

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
acheton
Posts: 252
Joined: 27 Jul 2010 23:58

Multiple option in Contents tab of Find Files

Post by acheton »

Hi all,

I regularly use the Contents tab of Find Files to search for files of various sorts containing a particular string. Is there a way to search for multiple options using this tab. For example if I wanted to search for files containing Word X or Word Y? I've checked the manual and there doesn't seem to be anything documented, so I thought I would ask.

thanks

Paul

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Multiple option in Contents tab of Find Files

Post by highend »

Sure, switch it to Mode: RegExp and use a... regex^^

E.g. for finding files that contain either "one" or "two" use:

Code: Select all

one|two
Ofc this would find files with the word: Lonely as well (because it contains "one")

To find only complete words, you could use this:

Code: Select all

\bone\b|\bthree\b
or in a more readable format

Code: Select all

\b(one|three)\b
The | is a logical OR
\b is a word boundary
() restricts the alternation to the part inside of it

The drawback: You need to learn a minimum of how regex works...
One of my scripts helped you out? Please donate via Paypal

acheton
Posts: 252
Joined: 27 Jul 2010 23:58

Re: Multiple option in Contents tab of Find Files

Post by acheton »

Thanks that's great- very helpful!

yusef88
Posts: 1123
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: Multiple option in Contents tab of Find Files

Post by yusef88 »

possible to use switches in quick search while RegExp is enabled?

Code: Select all

>one|two /types=*.mp4

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Multiple option in Contents tab of Find Files

Post by highend »

What has that question to do with content searching?

Apart of that it seems that a regex quicksearch ignores additional flags. Don't
know if this is a bug or intended...
One of my scripts helped you out? Please donate via Paypal

yusef88
Posts: 1123
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: Multiple option in Contents tab of Find Files

Post by yusef88 »

What has that question to do with content searching?
It has to do with Find Files.Thanks

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Multiple option in Contents tab of Find Files

Post by highend »

The whole topic is about content searching
and you probably need to file a bug report anyway...
One of my scripts helped you out? Please donate via Paypal

Post Reply