I am using es 1.1.0.30 and everything 1.4.1.1030 (x64) on Windows 11.
My regex is:
^(p[0-9]{7}|img_[0-9]{4}|dsc[0-9]{5})[.]jpg$
which runs fine using everything.
I escaped ^ and | for the cli regex:
^^(p[0-9]{7}^|img_[0-9]{4}^|dsc[0-9]{5})[.]jpg$
but no joy.
Any help is appreciated.
JimB
Using es.exe regex with multple OR terms
Re: Using es.exe regex with multple OR terms
ES wraps the search with the regex: modifier, which Everything 1.4 doesn't handle too well..
Please try wrapping your search in double quotes instead:
Please try wrapping your search in double quotes instead:
Code: Select all
es -r "^(p[0-9]{7}|img_[0-9]{4}|dsc[0-9]{5})[.]jpg$"
Re: Using es.exe regex with multple OR terms
Thanks it worked--for my case, I had to escape the beginning and ending double quotes (")
-r \"^(p[0-9]{7}|img_[0-9]{4}|dsc[0-9]{5})[.]jpg$[b]\"[/b]