How can I create a privileges that select content not equal in maven2

In our team, we have some packages which name starts with, and the others are{not libcore}(the {not libcore} means many other paths), now we want to create a privileges that only allow to push to the{not libcore}, how can I do that?

I believe you could create a content selector using regex that would prevent matching the segment.