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
Multiple option in Contents tab of Find Files
-
acheton
- Posts: 293
- Joined: 27 Jul 2010 23:58
- Location: XY 64bit, Win 11 at 100%
-
highend
- Posts: 15004
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Multiple option in Contents tab of Find Files
Sure, switch it to Mode: RegExp and use a... regex^^
E.g. for finding files that contain either "one" or "two" use:
Ofc this would find files with the word: Lonely as well (because it contains "one")
To find only complete words, you could use this:
or in a more readable format
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...
E.g. for finding files that contain either "one" or "two" use:
Code: Select all
one|twoTo find only complete words, you could use this:
Code: Select all
\bone\b|\bthree\bCode: Select all
\b(one|three)\b\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: 293
- Joined: 27 Jul 2010 23:58
- Location: XY 64bit, Win 11 at 100%
Re: Multiple option in Contents tab of Find Files
Thanks that's great- very helpful!
-
yusef88
- Posts: 1148
- Joined: 28 Jan 2013 03:50
- Location: Windows 8.1 32-bit
Re: Multiple option in Contents tab of Find Files
possible to use switches in quick search while RegExp is enabled?
Code: Select all
>one|two /types=*.mp4-
highend
- Posts: 15004
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Multiple option in Contents tab of Find Files
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...
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: 1148
- Joined: 28 Jan 2013 03:50
- Location: Windows 8.1 32-bit
Re: Multiple option in Contents tab of Find Files
It has to do with Find Files.ThanksWhat has that question to do with content searching?
-
highend
- Posts: 15004
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Multiple option in Contents tab of Find Files
The whole topic is about content searching
and you probably need to file a bug report anyway...
and you probably need to file a bug report anyway...
One of my scripts helped you out? Please donate via Paypal
XYplorer Beta Club