Folder search and regex

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
rekna
Posts: 4
Joined: Tue Apr 21, 2009 1:37 pm

Folder search and regex

Post by rekna » Sat Sep 05, 2009 10:17 am

I read the post about regex and folder search, but I can't get it working...
eg. when I search without regex using :

Code: Select all

temp\ docx
I get results

when I enable regex and match path and match case is off

Code: Select all

temp\\ docx
no results

tried

Code: Select all

^c:\\temp\\ docx$
no results

what am I doing wrong ?

maybe change search syntax a bit, like this, in order to make it clear to Everything how you want to search

Code: Select all

path:temp\\ file:docx$
Having to toggle search mode using short-cut keys is less easy than using some kind of search syntax to make clear what you want.
You could keep the short-cut keys for users who are used to it AND provide some kind of "switches" inside the search syntax for user like me who don't like the short-cut keys.
Switches would have precendence over options in the menu

David
Site Admin
Posts: 430
Joined: Tue Mar 17, 2009 1:42 am

Re: Folder search and regex

Post by David » Sun Sep 06, 2009 10:10 pm

"Everything" will not match path when you include a backslash (\) when regex is enabled.

You will need to manually enable match path when regex is enabled.

I have fixed this for the next release of "Everything".

I do have plans to add some search switches in a future release to over-ride the current search options.

rekna
Posts: 4
Joined: Tue Apr 21, 2009 1:37 pm

Re: Folder search and regex

Post by rekna » Wed Sep 09, 2009 7:05 am

Sorry, but even when I enable Match path in Regex mode, it does not work
You will need to manually enable match path when regex is enabled.
With regex on, match path on, match case off

Code: Select all

temp docx
no results

Code: Select all

c:\temp docx
no results

Code: Select all

c:\\temp docx
no results

David
Site Admin
Posts: 430
Joined: Tue Mar 17, 2009 1:42 am

Re: Folder search and regex

Post by David » Wed Sep 09, 2009 9:42 am

Please try (with match path enbaled):

Code: Select all

temp\\.*docx
See http://www.voidtools.com/faq.php#How_do_I_use_regex for the basic regex syntax.

SafetyCar
Posts: 22
Joined: Fri Jul 24, 2009 9:39 pm

Re: Folder search and regex

Post by SafetyCar » Wed Sep 09, 2009 7:39 pm

Well I'm not who's asking for help but...

This RegEx that you posted:
temp\\.docx

shouldn't be something like this?:
temp\\.*docx
Last edited by SafetyCar on Thu Sep 10, 2009 1:32 pm, edited 1 time in total.

David
Site Admin
Posts: 430
Joined: Tue Mar 17, 2009 1:42 am

Re: Folder search and regex

Post by David » Wed Sep 09, 2009 11:08 pm

Yes, there should be a * after the .

rekna
Posts: 4
Joined: Tue Apr 21, 2009 1:37 pm

Re: Folder search and regex

Post by rekna » Thu Sep 10, 2009 6:19 am

ok, c:\\temp\\.*docx works,
thx

Post Reply