How find folders whose name is NOT delimited by symbol

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

How find folders whose name is NOT delimited by symbol

Post by burgundy »

I wish to find a file with a wholeword name that is NOT delimited by a punctuation symbol.

For example, I wish to find a file called
railway
but NOT see hits of files whose name contains
european.railway
I had hoped the search menu options for "Match Whole Words" and "Ignore Punctuation" may have helped but unfortunately not.

Can anyone advise how to formulate my search correctly?
NotNull
Posts: 5260
Joined: Wed May 24, 2017 9:22 pm

Re: How find folders whose name is NOT delimited by symbol

Post by NotNull »

You need to be more specific than the example you provided.
To me european.railway is not NOT delimited by a punctuation symbol as it does not end with a punctuation character.
Furthermore: how should filenames like european.railway.txt be handled?
burgundy
Posts: 264
Joined: Fri Oct 16, 2009 9:50 am

Re: How find folders whose name is NOT delimited by symbol

Post by burgundy »

Essentially, I wish to find files whose wholeword name is neither immediately preceded nor immediately followed by a punctuation symbol.

The example I gave of "railway" earlier is the full name of the files I seek, not a part of it. So I do not want the following.
european.railway
european-railway
railway.travel
railway-travel
european.railway.travel
european-railway-travel
etc
Is it possible to formulate a search to obtain this result?
NotNull
Posts: 5260
Joined: Wed May 24, 2017 9:22 pm

Re: How find folders whose name is NOT delimited by symbol

Post by NotNull »

Code: Select all

folder:   !regex:\p{P}
Basically this will find all folders that do not have any punctuation character in their name.


For mode details, see Menu => Help => Regular Expression Syntax


EDIT: Missed the "folders" part in your question. Adapted the search query accordingly.
void
Developer
Posts: 15349
Joined: Fri Oct 16, 2009 11:31 pm

Re: How find folders whose name is NOT delimited by symbol

Post by void »

Please consider:

folder:regex:(^|\s)railway($|\s)


^ = match start of filename
| = OR
\s = match a 'space' character
$ = match end of filename



Do you want to allow .extension after railway?

If so:

regex:stem:(^|\s)railway($|\s)

(only useful if you wanted to match files)



For Everything 1.4, please use:

folder:regex:"(^|\s)railway($|\s)"

(use double quotes to escape | )
Post Reply