How to escape "!" character - Suggestion not working

General discussion related to "Everything".
Post Reply
Gabarito
Posts: 77
Joined: Thu Apr 25, 2013 4:20 pm

How to escape "!" character - Suggestion not working

Post by Gabarito »

Hi.

I'm trying to escape "!" character, but without success.
I have to find files with filename includes "foo" and "!".
Like this:
workfile!20.docx

If I put "work" and "!", all files like this "workfile10.docx", "workfile20.docx" and "workfile!20.docx" are displayed.
I need to force an "AND" operator.

Ideas?
therube
Posts: 4977
Joined: Thu Sep 03, 2009 6:48 pm

Re: How to escape "!" character - Suggestion not working

Post by therube »

Does this get it,
work *!*
?
Gabarito
Posts: 77
Joined: Thu Apr 25, 2013 4:20 pm

Re: How to escape "!" character - Suggestion not working

Post by Gabarito »

therube wrote: Wed Jul 22, 2020 12:01 am Does this get it,
work *!*
?
Thank you for your prompt reply.

No, trying
work *!*
doesn't work. It diplays the same result of
work "!"
.
It seems like using OR operator.
Result brings all filenames with "work" or "!".
void
Developer
Posts: 16745
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to escape "!" character - Suggestion not working

Post by void »

Please try searching for:
work "!"

prefixing a search with ! means NOT in Everything. Use double quotes to escape a literal !

Please make sure no search options are checked under the Search menu (eg: uncheck match case, uncheck match whole words, uncheck regex)

Please make sure the Everything filter is active under the Search menu.
Gabarito
Posts: 77
Joined: Thu Apr 25, 2013 4:20 pm

Re: How to escape "!" character - Suggestion not working

Post by Gabarito »

Sorry, guys.

work "!" is working now.
I made some mistakes here. Because of very long filenames, I didn't notice that there was other "!" among letters.

Image
Gabarito
Posts: 77
Joined: Thu Apr 25, 2013 4:20 pm

Re: How to escape "!" character - Suggestion not working

Post by Gabarito »

Also, I found an option to make precedence to operators.
Default was OR > AND.
I changed it and put AND > OR.
What does exactly it causes?
Is it important over my original question?
Last edited by Gabarito on Wed Jul 22, 2020 11:44 am, edited 1 time in total.
void
Developer
Posts: 16745
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to escape "!" character - Suggestion not working

Post by void »

OR > AND:

sonic tails | mario luigi == sonic <tails | mario> luigi
The search inside the < > brackets is performed first (OR).
Most search engines use this precedence.

AND > OR:

sonic tails | mario luigi == <sonic tails> | <mario luigi>
The search inside the < > brackets is performed first (ANDs).
Most programming languages use this precedence.
Is it important over my original question?
No. It only effects the search if you mix both AND and OR operators.

whitespace = AND
| = OR
Gabarito
Posts: 77
Joined: Thu Apr 25, 2013 4:20 pm

Re: How to escape "!" character - Suggestion not working

Post by Gabarito »

Thank you very much, void!
Everything is fully explained now.
ImageImageImage
Post Reply