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
es.exe regex with anchors
Re: es.exe regex with anchors
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.
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.
-
- Posts: 35
- Joined: Sun Mar 08, 2015 11:05 pm
Re: es.exe regex with anchors
Thanks. All good now.