Is regex or something equivalent to "positive lookbehind" possible in Windows Search?

Vita 76 Reputation points
2022-06-24T16:06:32.483+00:00

In a series of files I need to find those that have certain word after the series title, which is the first part of the file name in every file. The problem is that the word in question is in the series name as well. Say, I'd like to find files with the word Long at least twice in the following example:

One Long Unimaginative Series Title - Big Opening                                   
One Long Unimaginative Series Title - Getting Long Titles Shortened               ← match  
One Long Unimaginative Series Title - Banana                                        
One Long Unimaginative Series Title - On Second Thought, Long Things Can Be Fun   ← match  

I could search the first part as a string "One Long Unimaginative Series Title - ", or indicate for it to be ignored in the query, or as I mentioned before, find twice the occurrences, all of which are regex functions, I have a feeling Windows somehow support this but I don't know how to do it.

I thought about "One Long Unimaginative Series Title - "*"Long"*, well, more or less, but I didn't quite work, I think I missed something. Do single and double quotes work like the do on Bash by chance? (single quotes make things literal while double still perform expansions and resolve variables)

Any ideas how to do it? Thanks! :)

Sidenote: I'm aware this could be done easily in PowerShell or Bash, but I need to use the results in the GUI/File Explorer.

Windows for business | Windows Client for IT Pros | User experience | Other
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.