How to use "or" in content?

General discussion related to "Everything".
Post Reply
wu_yi
Posts: 10
Joined: Sun Dec 26, 2021 2:16 am

How to use "or" in content?

Post by wu_yi »

I want to find a file that contains either five or six digits,use:regex:content:<\b[0-9{5}\b|\b[0-9{6}\b>
show The syntax is incorrect
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to use "or" in content?

Post by void »

Please escape | with double quotes ("), otherwise Everything will treat | as the OR operator:

regex:content:"\b\d{5}\b|\b\d{6}\b"

-or-

regex:content:\b\d{5,6}\b



PCRE Repetition
Post Reply