Page 1 of 1

Folder search and regex

Posted: Sat Sep 05, 2009 10:17 am
by rekna
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

Re: Folder search and regex

Posted: Sun Sep 06, 2009 10:10 pm
by David
"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.

Re: Folder search and regex

Posted: Wed Sep 09, 2009 7:05 am
by rekna
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

Re: Folder search and regex

Posted: Wed Sep 09, 2009 9:42 am
by David
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.

Re: Folder search and regex

Posted: Wed Sep 09, 2009 7:39 pm
by SafetyCar
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

Re: Folder search and regex

Posted: Wed Sep 09, 2009 11:08 pm
by David
Yes, there should be a * after the .

Re: Folder search and regex

Posted: Thu Sep 10, 2009 6:19 am
by rekna
ok, c:\\temp\\.*docx works,
thx