regex: modifier: escape "|"

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

regex: modifier: escape "|"

Post by NotNull » Fri Jun 26, 2020 2:57 pm

Probably caused by the tropical temperatures here (both my braincells are boiling), but I can't figure something out:

Scenario 1:
Enable Regex (Menu:Search > Enable Regex)
Search for:
ever(y|y)thing
(filenames or folders containing the text "everything"

Result: 668 objects found


Scenario 2:
Disable Regex (Menu:Search > Enable Regex)
Search for:
regex:ever(y|y)thing
(filenames or folders containing the text "everything"

Result: 0 objects found.

I can get my search results with
regex:"ever(y|y)thing"
, but I can't remember how to escape the "|".

tuska
Posts: 228
Joined: Thu Jul 13, 2017 9:14 am

Re: regex: modifier: escape "|"

Post by tuska » Fri Jun 26, 2020 4:07 pm

Code: Select all

regex:ever(y"|"y)thing
:?:

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

Re: regex: modifier: escape "|"

Post by NotNull » Fri Jun 26, 2020 5:03 pm

Of course! Man, that was stupid :oops:

Thank you!!

Post Reply