Page 1 of 1
Multiple option in Contents tab of Find Files
Posted: 13 Oct 2017 19:45
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
Re: Multiple option in Contents tab of Find Files
Posted: 13 Oct 2017 20:10
by highend
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: L
onely 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...
Re: Multiple option in Contents tab of Find Files
Posted: 18 Oct 2017 12:53
by acheton
Thanks that's great- very helpful!
Re: Multiple option in Contents tab of Find Files
Posted: 18 Oct 2017 14:10
by yusef88
possible to use switches in quick search while RegExp is enabled?
Re: Multiple option in Contents tab of Find Files
Posted: 18 Oct 2017 15:13
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...
Re: Multiple option in Contents tab of Find Files
Posted: 18 Oct 2017 15:44
by yusef88
What has that question to do with content searching?
It has to do with Find Files.Thanks
Re: Multiple option in Contents tab of Find Files
Posted: 18 Oct 2017 15:47
by highend
The whole topic is about content searching
and you probably need to file a bug report anyway...