es.exe regex with anchors

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

es.exe regex with anchors

Postby aussieboykie » Wed Mar 22, 2017 2:29 am

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
Site Admin
Posts: 3571
Joined: Fri Oct 16, 2009 11:31 pm

Re: es.exe regex with anchors

Postby void » Wed Mar 22, 2017 3:01 am

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: 24
Joined: Sun Mar 08, 2015 11:05 pm

Re: es.exe regex with anchors

Postby aussieboykie » Wed Mar 22, 2017 4:04 am

Thanks. All good now.


Return to “Support”