How may I search for files that have dashes without spaces before or after?

General discussion related to "Everything".
Post Reply
rfsux
Posts: 2
Joined: Sun Jul 14, 2019 5:00 am

How may I search for files that have dashes without spaces before or after?

Post by rfsux » Sun Jul 14, 2019 5:11 am

Hello Everything support team,

I want files that look like:
picture-ant-bug
picture-ant-cat
picture-bat-cap

But not files that look like:
John - composition a
John - composition b
Tim - instrumental

Thank you to your programming knowledge and helpful software.

void
Site Admin
Posts: 4997
Joined: Fri Oct 16, 2009 11:31 pm

Re: How may I search for files that have dashes without spaces before or after?

Post by void » Sun Jul 14, 2019 5:23 am

Please try the following search:
- !" - "

- = search for a literal -
! = NOT

Use quotes to escape spaces.

!" - " = NOT <space> - <space>

rfsux
Posts: 2
Joined: Sun Jul 14, 2019 5:00 am

Re: How may I search for files that have dashes without spaces before or after?

Post by rfsux » Sun Jul 14, 2019 6:32 am

Solved! That worked.

You are brilliant. Your reply was only minutes later. I assumed wrongly that I should check back tomorrow, sorry about that.

Post Reply