How to escape "!" character - Suggestion not working

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

How to escape "!" character - Suggestion not working

Post by Gabarito » Tue Jul 21, 2020 10:15 pm

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: 2599
Joined: Thu Sep 03, 2009 6:48 pm

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

Post by therube » Wed Jul 22, 2020 12:01 am

Does this get it,
work *!*
?

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

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

Post by Gabarito » Wed Jul 22, 2020 12:48 am

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
Site Admin
Posts: 5543
Joined: Fri Oct 16, 2009 11:31 pm

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

Post by void » Wed Jul 22, 2020 7:42 am

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: 20
Joined: Thu Apr 25, 2013 4:20 pm

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

Post by Gabarito » Wed Jul 22, 2020 11:31 am

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: 20
Joined: Thu Apr 25, 2013 4:20 pm

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

Post by Gabarito » Wed Jul 22, 2020 11:38 am

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
Site Admin
Posts: 5543
Joined: Fri Oct 16, 2009 11:31 pm

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

Post by void » Wed Jul 22, 2020 11:43 am

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: 20
Joined: Thu Apr 25, 2013 4:20 pm

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

Post by Gabarito » Wed Jul 22, 2020 11:46 am

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

Post Reply