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: 1286
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Everything and regexp search

Post by *nsp »

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: 3753
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

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 May 2020 Update, Version 2004 (OS Build 19041.331)
Intel(R) Core(TM) i7-4770 CPU @ 3.40GH, 16GB RAM
TC 9.51 x64 / x86, Everything 1.4.1.984 (x64)

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

Post by *nsp »

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