Regex not supporting anchors?

Found a bug in "Everything"? report it here
Post Reply
therube
Posts: 4605
Joined: Thu Sep 03, 2009 6:48 pm

Regex not supporting anchors?

Post by therube »

Regex not supporting anchors?
Or at least something doesn't seem right.


Neither, Ctrl+R nor regex:

regex:^Everything

Expected: Find file names starting with Everything

Results: Nothing

Yet something like, ^.*$ (find all files, kind of thing) does work.
As does: ^.*thing.exe$ (find filenames ending with thing.exe").

741b

---

Ah, I see what it is.
Match Path.
If Match Path is enabled, ^ anchors to the start of the Path rather then the Name, so you would need something like, oh, not sure,

Code: Select all

 ^.:\\.*\\everything
 -reduced-
 ^.*\\everything
 
which looks like it will find files or directory parts that start with everything. (That's weird ;-).)

And if you append \. that gets rid of (most of) the directory parts.

Code: Select all

^.:\\.*\\everything\.
(Something like \everything64\ is still found. <-No, that's wrong.)
Post Reply