es.exe regex with anchors

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
aussieboykie
Posts: 35
Joined: Sun Mar 08, 2015 11:05 pm

es.exe regex with anchors

Post by aussieboykie »

If I execute the following command:

es.exe -r -n 1 -sort date-modified-descending ^Word.exe$

The output is:

C:\Program Files (x86)\Microsoft Office\root\Office16\WINWORD.EXE

I don't expect WINWORD.EXE to match ^Word.exe$ so it looks like my regex start of word anchor ^ has been ignored, or else I am doing something wrong.

Regards, AB
void
Developer
Posts: 16672
Joined: Fri Oct 16, 2009 11:31 pm

Re: es.exe regex with anchors

Post by void »

Please use ^^ to escape a single ^

es.exe -r -n 1 -sort date-modified-descending ^^Word.exe$

^ is the escape character for the windows command prompt.
^\ = \
^& = &
^| = |
^> = >
^< = <
^^ = ^

I've added this help to the es help.
aussieboykie
Posts: 35
Joined: Sun Mar 08, 2015 11:05 pm

Re: es.exe regex with anchors

Post by aussieboykie »

Thanks. All good now.
Post Reply