You are right!
The reason for regex is somewhat convoluted and, as it turned out, completely unjustified indeed. The thing is before this particular search I did a few other searches where regex was justified, then I mechanically used regex with !-, but when I failed to produce the expected result, I knew that I needed just to add something to "regex:!-" to show that it refers to the folders. That's what I called "to do it with regex". By suggesting "parentname" you provided me with what I was looking for, getting rid of regex along the way.
But still a question on regex. Suppose I need to define parentname with regex, is it possible? Parentname:regex: doesn't seem to work.
omotrl wrote: Mon Jul 24, 2023 5:07 pm
But still a question on regex.
Good question!
The general syntax is search-modifier:search-function:value [1] regex: is a search modifier, whereas parentname: is a search function.
So this should do the trick: regex:parentname:
[1] Or search-modifier:search-modifier:search-modifier:search-function:value if you need multiple modifiers.
The order of the modifiers is not important.