examples that show the use of combined options

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
StefanL38
Posts: 5
Joined: Wed May 25, 2011 11:27 am

examples that show the use of combined options

Post by StefanL38 »

Hello everybody,

of course I have found the documentation about the search-options
But I haven't found examples that show the use and especially how to combine search-options

right now I would like to do a search find filename containing the characters
1. "quad" and "fkt"
or
2. "quad" and "funkt"
or
3. "sp" and "fkt"
or
4. "sp" and "funkt"

So this means the filenames should have the two character-sequences written in the line above
beginning with 1. or the line beginning with 2. or the line beginning with 3. etc.

But how do I wite this as a regular expression?

best regards Stefan
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: examples that show the use of combined options

Post by NotNull »

1. "quad" and "fkt"
2. "quad" and "funkt"
3. "sp" and "fkt"
4. "sp" and "funkt"
StefanL38 wrote: Sun Nov 28, 2021 2:22 pm But how do I wite this as a regular expression?
For example with:

Code: Select all

regex:"(sp|quad).*(funkt|fkt)"
or

Code: Select all

regex:"(sp|quad).*(f(un)?kt)"
(the (un)? indicates that there might be a 'un' part, but that also might be absent. So it matches funkt as well as fkt.

Note that in the first two, the order of the words is of importance; in the last one the words can be in any order.




Without regular expressions:

Code: Select all

<quad|sp> <funkt|fkt>
StefanL38
Posts: 5
Joined: Wed May 25, 2011 11:27 am

Re: examples that show the use of combined options

Post by StefanL38 »

Hi NotNull,

first of all: that is a really creative and funny wordplay as a username ;-)) made me smile

Thank you very much for your examples

best regards Stefan
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: examples that show the use of combined options

Post by NotNull »

Thanks! :D

And you're welcome, of course. If you need more examples/explanations .. just let me/us know.
Post Reply