Need help searching

Discussion related to "Everything" 1.5.
Post Reply
Roonsworld
Posts: 8
Joined: Wed Dec 11, 2024 5:15 am

Need help searching

Post by Roonsworld »

How do I search only the files which have a specific word in between somewhere in the file name but not starting or ending with?
therube
Posts: 5723
Joined: Thu Sep 03, 2009 6:48 pm

Re: Need help searching

Post by therube »

blue !regex:^blue !regex:blue$


Search for blue
but do not find filenames that start with blue (^blue)
nor filenames that end with blue (blue$)

Finds, "libbluescreen_plugin.dll" & "Carefirst Blue Cross Blue Shield.pdf"
Not, "bluetooth-symbolic.svg" nor "red-blue"


You could use prefix: & suffix:, BUT, they look to work on "words" in a file name
rather then on the start & end of filenames.
(Is that correct, or is that only happening in 1.5a ?)

blue !prefix:blue !suffix:blue


Finds, "libbluescreen_plugin.dll" & "CoppinSpecBluestone.pdf"
Not, "167548_source two blue cups.txt", nor "Sky Blue.skin"
(Is that correct, or is that only happening in 1.5a ?)

Seemingly because prefix: suffix: are dealing with "word-parts" of the file name, & not the filename itself.
(Is that correct, or is that only happening in 1.5a ?)


(Is that correct, or is that only happening in 1.5a ?)
Match the start of words. So yes it is correct.
(I didn't realize.)
(And prefix: suffix: is 1.5a only.)


!\blue
, might work in place of the first regex:, might be a touch faster.
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: Need help searching

Post by NotNull »

Will depend on what you consider a word ...
One of these might already do it:

Code: Select all

*?word?*
" word "
The first one will find swordfish.txt, the second one "what's a word worth.doc"
Post Reply