Constrain leafref output

When defining a leaf of type leafref, is it possible to apply a pattern (or some other mechanism) to constrain the result, so that only values matching a specific regex pattern is returned ?

No, there isn’t. The value space of the referring node is the value space of the referred node.

Thanks for the confirmation.