SDK regex ^ bug?

Found a bug in "Everything"? report it here
Post Reply
lin-ycv
Posts: 10
Joined: Fri Mar 11, 2022 2:25 am

SDK regex ^ bug?

Post by lin-ycv »

I'm not sure where the issue is, but i'm having issues without getting results when using regex with ^

As seen in the attachment, in everything, regex:^shell returns results, but if i'm using the sdk, the same query returns no results
I'm didn't use Everything_SetRegex, that's why Regex sayas false on the second line.
Attachments
Screenshot 2024-05-25 202903.png
Screenshot 2024-05-25 202903.png (28.29 KiB) Viewed 1610 times
void
Developer
Posts: 16723
Joined: Fri Oct 16, 2009 11:31 pm

Re: SDK regex ^ bug?

Post by void »

Please try without path matching.

C:\windows\shell.example.png will not match the regex pattern: ^shell
lin-ycv
Posts: 10
Joined: Fri Mar 11, 2022 2:25 am

Re: SDK regex ^ bug?

Post by lin-ycv »

yes without path matching, ^ works
but why is this the case?
$ works with patch matching, why not ^?
Attachments
Screenshot 2024-05-25 213904.png
Screenshot 2024-05-25 213904.png (64.75 KiB) Viewed 1603 times
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: SDK regex ^ bug?

Post by NotNull »

For file C:\Windows\notepad.exe, everything will use the part after the last backslash (notepad.exe) for its searches.
So regex:^note will find it.

If Match Path is enabled, Everything will consider the filename to incude the path and will search in the fully qualified filename (C:\Windows\notepad.exe)
regex:^note will *not* find notepad.exe as the full filename does not start with note
regex:^C:\\W on the other hand will find it (among all other files and folders in the Windows folder)

In both cases the end of the filename, anchored by "$", will still be the same.



Some alternatives to find file/foldernames starting with "shell" anyway while Match Path is enabled:
regex:nopath:^shell
nopath:startwith:shell


With Everything 1.5, which you seem to be using:
regex:basename:^shell
**\shell*
Post Reply