Smart Rule wildcards

You could ty this approach…