Group based dynamic queries, custom properties and alerts


Recently I was working at assigning Nodes to proper Groups via IP based dynamic queries. It work well, however the regex support it could be better.

Anyway, now I have around 30 groups with dynamically populated Nodes. Based on the Groups I'd like to set some Node Custom Properties now. However I can see that the only is to create 30 alerts covering the IP ranges and use alerts to populate the data. Since the Nodes are already assigned to proper Groups, is there a way to make use of it? E.g. If Group is ABC then set custom property DEF etc.?