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: 273
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: 5461
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: 273
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: 5461
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: 16748
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 | )
burgundy
Posts: 273
Joined: Fri Oct 16, 2009 9:50 am

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

Post by burgundy »

The example being used in this thread does not cover other instances where punctuation could be ignored.

For instance, I want to search for "KR" but not get hits where it is preceded or followed by a special character (which I tend to consider is a type of punctuation character.

I DO NOT want to see hits on the following (with underscore symbol before or after):
menu_KR_old.png
menu_KR.png
KR_old.png
I DO want to see hits on the following (with space before or after):
menu KR old.png
menu KR.png
KR old.png
Is there a way to do this without using Regex?
therube
Posts: 4977
Joined: Thu Sep 03, 2009 6:48 pm

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

Post by therube »

Maybe
ww:" KR"
(or, folder: ww:" KR").

(That fails on the last example.)

Maybe
nopath:wildcards:*[!_]KR[!_]*
.
And in the '[!_]' pairs, you would put any characters you want to exclude, so perhaps, [!_.-] kind of thing.

(Nope, that's not going to work either, is it.)


If wildcards: supported <space> (\s) (or !\s) then maybe, but probably still not.
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

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

Post by void »

I will add an advanced filename_underscore_word_character setting for backwards compatibility with Everything 1.4.
When enabled, _ will be treated as a word character.
(this is the first post asking to treat _ as a word character -countless requests to treat _ as a non-word character)



For now, please use regex:

regex:\bkr\b

\b = word boundary
burgundy
Posts: 273
Joined: Fri Oct 16, 2009 9:50 am

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

Post by burgundy »

I thought I had understood how Ignore punctuation works but I am beginning to wonder if my understand is flawed. When I search for
Rebouche,
I would like to find a file with the following name but it does not get listed, irrespective of whether I have Ignore Punctuation on or off:
Rebouche Kinetics pharmacokinetics, and regulation
I thought Ignore punctuation was specifically designed to ignore the punctuation symbol in cases like this. I am getting more puzzled! Can anyone kindly explain what I am getting wrong.
tuska
Posts: 1052
Joined: Thu Jul 13, 2017 9:14 am

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

Post by tuska »

With or without "Ignore Punctuation" ticked I find
Rebouche,
Rebouche Kinetics pharmacokinetics, and regulation
in 'Everything' 1.5.0.1383a (x64)
therube
Posts: 4977
Joined: Thu Sep 03, 2009 6:48 pm

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

Post by therube »

No.

There is a difference between a search term provided,
& search results returned.

Ignore Punctuation deals with the results returned.

A search of "Rebouche," is specifically looking for "Rebouche," - comma included.
That comma is not found in "Rebouche Kinetics...", so no result will be returned.

Ignore Punctuation does not filter the search term ("Rebouche,").


That said, you may be able to filter a search term, depending on how you go about things.
A search term can be pre-filtered prior to sending it to Everything, or there are various functions that may filter a search term.
tuska
Posts: 1052
Joined: Thu Jul 13, 2017 9:14 am

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

Post by tuska »

therube wrote: Fri Jul 12, 2024 3:17 pm That comma is not found in "Rebouche Kinetics...", so no result will be returned.
burgundy wrote: Fri Jul 12, 2024 1:21 pm
Rebouche Kinetics pharmacokinetics, and regulation
?
therube
Posts: 4977
Joined: Thu Sep 03, 2009 6:48 pm

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

Post by therube »

If the search were
Rebouche ,
- there is a space in there, so "Rebouche" AND "," then what you show would be found.

But, the search is 1 "word" (string, term), & that "word" is 9 characters in length containing both letters [a-Z] (8 of them) & 1 "symbol", "," (Rebouche,) & that is not found in "Rebouche Kinetics pharmacokinetics, and regulation".
tuska
Posts: 1052
Joined: Thu Jul 13, 2017 9:14 am

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

Post by tuska »

2therube
I'm very sorry, unfortunately I didn't read the topic properly. :?

Now I can also confirm that
Rebouche Kinetics pharmacokinetics, and regulation
is NOT found when you search for Rebouche,
regardless of whether "Ignore Punctuation" is ticked or not.
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

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

Post by void »

Punctuation is ignored in filenames.

Punctuation in your search is not ignored by default.



To ignore punctuation in your search:
Paste text with Ctrl + Shift + V

-or-

Right click the Search box and click Paste without punctuation

-or-
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the Advanced tab on the left.
  • To the right of Show settings containing, search for:
    punc
  • Select: ignore_punctuation_type
  • Set the value to: Filename and search
  • Click OK.
    edit: Enable Ignore punctuation from the Search menu.
tuska
Posts: 1052
Joined: Thu Jul 13, 2017 9:14 am

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

Post by tuska »

2void

Only this option unfortunately did not work for me:
Everything Options - 1.5.0.1383a (x64) - Advanced > ignore_punctuation_type > Filename and search

Only if I also right-click in the footer and select "Ignore Punctuation",
then I get the expected result.
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

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

Post by void »

Ignore punctuation must be enabled to apply the advanced ignore_punctuation_type setting.
tuska
Posts: 1052
Joined: Thu Jul 13, 2017 9:14 am

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

Post by tuska »

void wrote: Sun Jul 14, 2024 7:49 am Ignore punctuation must be enabled to apply the advanced ignore_punctuation_type setting.
Thank you for the clarification.

I have now set the "Filename and search" option,
as I am interested in getting as many search results as possible.
burgundy
Posts: 273
Joined: Fri Oct 16, 2009 9:50 am

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

Post by burgundy »

void wrote: Sun Jul 14, 2024 7:49 am Ignore punctuation must be enabled to apply the advanced ignore_punctuation_type setting.
I finally managed to get this working as I wished. However, the point above about enabling "ignore punctuation" is not intuitive. I wonder if there's a way to make this easier for other users.
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

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

Post by void »

I probably have a misunderstanding with the usage..

Are users typing in the punctuation? What are they expecting the typed-in punctuation to match?
Post Reply