Search for "." in the file name

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
burgundy
Posts: 273
Joined: Fri Oct 16, 2009 9:50 am

Search for "." in the file name

Post by burgundy »

Is it possible to search for "." (without quotation marks) in the file name?

When I specify "." it matches the full stop character used between file name and extension, which is not what I want.
dedupeit
Posts: 10
Joined: Thu Jul 28, 2022 9:52 pm

Re: Search for "." in the file name

Post by dedupeit »

Not sure if this is the best way but you can use regex to do this:

Code: Select all

 file:regex:.+\..+\.
This looks for one or more characters, a period, one or more characters, another period. So any that has at least 2 periods in it will match.
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: Search for "." in the file name

Post by raccoon »

There are a few different ways, but I haven't used 1.4 in a long time now, so many of them will probably require using the 1.5 alpha build.

Using wildcards and the files have an extension (a second dot):
*.*.*

Turn off Search > Match Path or use the nopath: verb:
nopath:*.*.*

If you consider that extensions are only up to 3 or 6 letters long, you can pretend that longer extensions aren't really extensions but long filenames.
nopath:*.????*
nopath:*.???????*

Use the stem: verb to search the name part without extension of file or folder objects (all objects would contain at least two dots):
stem:.
burgundy
Posts: 273
Joined: Fri Oct 16, 2009 9:50 am

Re: Search for "." in the file name

Post by burgundy »

Thanks Racoon for the useful suggestions. STEM seems designed for this purpose although several of the others work too.

(I am on v1.5).
Post Reply