Forexmple,i want searth files which name contain "ctp" and end with .md or .txt,bellow command is work fine
ctp ext:md;txt
but,when i want to use regex do the same thing,wierd things happen.I have tried much regex command,but it just don't work.Maybe in everything the () and [] have diffrent mechanism with other place???
bellow is commands i have tried and failed
ctp regex:(.md$|.txt$)
ctp regex:\.(md|txt)$
regex:.*ctp.*\.(md|txt)$
regex:.*ctp.*\.(md\|txt)$
so,i'm really want to know how use "group or" in everything regex.
thanks
how to use "OR" condition(for group) in everything regex
-
slarkmonk
- Posts: 6
- Joined: Mon Aug 26, 2024 1:50 am
-
void
- Developer
- Posts: 20020
- Joined: Fri Oct 16, 2009 11:31 pm
Re: how to use "OR" condition(for group) in everything regex
Everything 1.4:
Please try:
(The must be escaped with double quotes)
For Everything 1.5, will work as expected, regex: will eat the |.
Please try:
ctp regex:"(.md$|.txt$)"(The
|For Everything 1.5,
ctp regex:(.md$|.txt$)-
slarkmonk
- Posts: 6
- Joined: Mon Aug 26, 2024 1:50 am
Re: how to use "OR" condition(for group) in everything regex
thank you very much!void wrote: Tue Jun 16, 2026 6:52 am Everything 1.4:
Please try:
ctp regex:"(.md$|.txt$)"
(Themust be escaped with double quotes)|
For Everything 1.5,will work as expected, regex: will eat the |.ctp regex:(.md$|.txt$)
It worked!