Everything and regexp search

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: sheep, Hacker, Stefan2, white

Post Reply
User avatar
nsp
Power Member
Power Member
Posts: 1218
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Everything and regexp search

Post by *nsp » 2018-07-20, 15:24 UTC

If i want to find all file that start by ABC or BCD, I use the folowing regexp expression

Code: Select all

^(ABC|BCD)
This work fine with TC search but if i tick Everything i do not get correct result.
I can get good result if i use this expression :

Code: Select all

ed:regex:"^(ABC|BCD)"
I added double quote for the regexp expression to work.

User avatar
Horst.Epp
Power Member
Power Member
Posts: 3447
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp » 2018-07-20, 16:49 UTC

Everything can't auto-detect regex so TC has to set the relevant flags
in the SDK IPC calls if user has selected RegEx in the TC search dialog.
Windows 10 Home x64 November 2019 Update, Version 1909 (OS Build 18363.476)
Intel(R) Core(TM) i7-4770 CPU @ 3.40GH, 16GB RAM
TC 9.50ß6 x64 / x86, Everything 1.4.1.956 (x64)

User avatar
nsp
Power Member
Power Member
Posts: 1218
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp » 2018-07-21, 12:58 UTC

Horst.Epp wrote:Everything can't auto-detect regex so TC has to set the relevant flags
in the SDK IPC calls if user has selected RegEx in the TC search dialog.
THis is exactly the point, I do a regexp search in TC with Everything option. I think that the current implementation pass allready the regex flag or use regexp: marker. I do suspect that the passed expression is not the right one either because of wrong parsing in TC altering | or not quotting if it just use regex: marquer in tthe search.

But for now if we search with both RegExp and Everything it is not working as expected.

Post Reply