[Solved] Enable Regex vs. regex:

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

[Solved] Enable Regex vs. regex:

Post by NotNull »

If I enable regular expressions ( Menu:Search > Enable Regex), with this query I can get a list of all (397) files/folders on my system that start with either "test" or "text" :

Code: Select all

^te(s|x)t
If I disable regular expressions, and enter this query:

Code: Select all

regex:^te(s|x)t
I get zero results.
Why is that?

BTW: a search for ^te[sx]t will give me the expected results in both situations.
Last edited by NotNull on Tue Feb 06, 2018 8:40 am, edited 1 time in total.
ovg
Posts: 294
Joined: Thu Oct 27, 2016 7:19 pm

Re: Enable Regex vs. regex:

Post by ovg »

NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Enable Regex vs. regex:

Post by NotNull »

Ah , yes, of course!
Thanks!
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: Enable Regex vs. regex:

Post by Stamimail »

I think functions need 3 signs:
One before the function, to inform about writing a function (the results list won't be affected by writing the function name),
And two signs after the function name, to open and close.
/function()
/function<>
viewtopic.php?f=4&t=6057#p20426
Post Reply