I see that the functionality is cool, but wonder if we should make it easier to dynamically manipulate dialplans instead.Well, if you need dynamic match, and We need it, I see no other clean solution.
Now you can already use an avp inside the match like '^(00|+)?$avp(s:match)$' but If you have more than one value to check... you have to do a bucle to acomplish that.