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
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|two
To find only complete words, you could use this:
Code: Select all
\bone\b|\bthree\b
Code: 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
Re: Multiple option in Contents tab of Find Files
Thanks that's great- very helpful!
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
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
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?
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