regex: modifier: escape "|"

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

regex: modifier: escape "|"

Post by NotNull »

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: 908
Joined: Thu Jul 13, 2017 9:14 am

Re: regex: modifier: escape "|"

Post by tuska »

Code: Select all

regex:ever(y"|"y)thing
:?:
NotNull
Posts: 5167
Joined: Wed May 24, 2017 9:22 pm

Re: regex: modifier: escape "|"

Post by NotNull »

Of course! Man, that was stupid :oops:

Thank you!!
Post Reply