Searching for tagged links

I would like to have a list of tiddlers that are not tagged with a tag beginning with TOC-c.

What would be the proper syntax for such a list?

I was just looking into this and any solution needs testing. Can you share a small set of test data?

I am thinking something along the line of [all[current]tags[]prefix[TOC-c]count[]] but I know this is incomplete. It can be a little tricky asking for the “not tagged with prefixed”, here if the number 0 is returned there is no tag with that prefix. So this could be extended to read [all[current]tags[]prefix[TOC-c]count[]match[0]then[none]else[]]

<<list-links "[all[tiddlers]!is[system]!search:tags:anchored[TOC-c]]">>

I think this might be better as a :filter, so that your titles stay intact:

       [tag[TestTag]] :filter[tags[]prefix[TOC-c]count[]match[0]]
<!--  `-------------',
                     `+ or whatever                           -->

But regardless, this looks like a better solution:

I’d never noticed anchored before. Very nice!