… knowing that I use both grouping parenthesis, and the vertical bar for searching among several alternative patterns.
But in Everything(last 1.4.1.932 version, I just upgraded in order to be sure), this doesn't seem to work. Actually nothing is found.
Is Everything using some specific not standard regular expression syntax for doing this?
Or should I have to escape some parts of the expression?
Or should I file a bug report?
That's because the pipe symbol ("|") has speacial meaning in Everything: it's used as OR.
That causes your query to be expanded to: regex:^.*\.(pdf OR docx)$.
You can escape the | by enclosing it in "":
regex:"^.*\.(pdf|docx)$"
- or -
regex:^".*\.(pdf|docx)"$
- or -
regex:^.*\.(pdf"|"docx)$
- or -
... etcetera ..
Or, in this specific case, you could also use this as your query:
NotNull wrote: Mon Feb 11, 2019 3:17 pm
That's because the pipe symbol ("|") has speacial meaning in Everything: it's used as OR.
That causes your query to be expanded to: regex:^.*\.(pdf OR docx)$.
You can escape the | by enclosing it in "":
regex:"^.*\.(pdf|docx)$"
- or -
regex:^".*\.(pdf|docx)"$
- or -
regex:^.*\.(pdf"|"docx)$
- or -
... etcetera ..
I see. Thank you very much.
I didn't even notice that I could want to use "|" as a OR operator.
Maybe the need to quote regular expressions could be more underlined.
NotNull wrote: Mon Feb 11, 2019 3:17 pmOr, in this specific case, you could also use this as your query:
ext:pdf;docx
Not really, unfortunately.
I simplified the case for asking the question here, but the regular expression that I want to use is actually much more complex than that.