How to search for specific repeating folder pattern

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
j2associates
Posts: 42
Joined: Wed Feb 05, 2020 12:37 pm

How to search for specific repeating folder pattern

Post by j2associates »

Hello all,

I want to find all occurrences where a given folder has a child folder of the same name (e.g. a/b/c/c or a/b/b). In the prior example, I would want to match folder C in the first example and folder B in the second example. I'm not sure how to do this. The depth at which this happens will vary.

Thanks in advance for any ideas and/or suggestions.
NotNull
Posts: 5468
Joined: Wed May 24, 2017 9:22 pm

Re: How to search for specific repeating folder pattern

Post by NotNull »

Search for:

Code: Select all

folder:  regex:\\(.+)\\\1$
Post Reply