endwith

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

endwith

Post by harryray2 »

Is there a way to find the last few letters of a filename excluding the extension...I've tried endwith: but that includes the extension.

eg. search for zilla (as in mozilla.exe)

Ta!
therube
Posts: 4977
Joined: Thu Sep 03, 2009 6:48 pm

Re: endwith

Post by therube »

Will find names containing "zilla" followed by a (dot).

regex:.*zilla\.

mozilla.exe
mozilla.123.exe
test.mo.zilla.123.exe
debugQA@mozilla.org.xpi


But will not find names without an extension.

mozilla

You could use, regex:.*zilla$ (or endwith:zilla or wfn:*zilla or path:*zilla) to find that.
(I wasn't expecting wfn to work.)
ovg
Posts: 294
Joined: Thu Oct 27, 2016 7:19 pm

Re: endwith

Post by ovg »

Why not to use simple zilla.* ?
void
Developer
Posts: 16750
Joined: Fri Oct 16, 2009 11:31 pm

Re: endwith

Post by void »

regex:"(zilla\.[^\.]*$)|zilla$"

This will match zilla only at the end of the name part.

Searching for:
zilla.

Will also work only if the filename has an extension.
It will also find results where zilla. appears anywhere in the filename, so it might not be ideal:
zilla.abc.123.txt

zilla.*

Wildcards force Everything to match the whole filename, so here the filename would have to start with zilla.
You could use *zilla.* but that would be the same search as above: zilla.
ovg
Posts: 294
Joined: Thu Oct 27, 2016 7:19 pm

Re: endwith

Post by ovg »

This is strange ...

When Tools->Options->Search->"Match whole filename when using wildcards" isn't ticked search term fox.* finds e.g.

ReminderFox.ics.dav
firefox.exe
etc

and don't finds foxblabla.txt

When Tools->Options->Search->"Match whole filename when using wildcards" is ticked search term fox.* finds only eg

fox.bat
fox.so
etc.

I use Everything 1.4.1.819b x64
void
Developer
Posts: 16750
Joined: Fri Oct 16, 2009 11:31 pm

Re: endwith

Post by void »

When Tools->Options->Search->"Match whole filename when using wildcards" isn't ticked search term fox.* finds e.g.

ReminderFox.ics.dav
firefox.exe
etc
These are the expected results.
With "Match whole filename when using wildcards" off, the search fox.* would be the same as: *fox.* or just: fox.
and don't finds foxblabla.txt
There's no dot (.) after fox here.
When Tools->Options->Search->"Match whole filename when using wildcards" is ticked search term fox.* finds only eg
The whole file name must match, so the filename must start with fox.

What results are you expecting?
ovg
Posts: 294
Joined: Thu Oct 27, 2016 7:19 pm

Re: endwith

Post by ovg »

Thank you for clarifications
Post Reply