Page 1 of 1

endwith

Posted: Wed Dec 14, 2016 7:46 pm
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!

Re: endwith

Posted: Wed Dec 14, 2016 8:36 pm
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.)

Re: endwith

Posted: Wed Dec 14, 2016 8:47 pm
by ovg
Why not to use simple zilla.* ?

Re: endwith

Posted: Wed Dec 14, 2016 11:18 pm
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.

Re: endwith

Posted: Thu Dec 15, 2016 4:01 am
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

Re: endwith

Posted: Thu Dec 15, 2016 8:05 am
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?

Re: endwith

Posted: Thu Dec 15, 2016 9:15 am
by ovg
Thank you for clarifications