Hi,
Unfortunately, there is not any more universal way to aggregate dimension members using the patterns of names of dimension members. We have in our backlog a request about option to create custom hierarchies in any dimension but it seems that this feature request currently does not cover such a level of flexibility that is required by your use case.
Anyway, thank you for the idea. I linked your post to this feature request and it will be evaluated if there can be a solution also for your case.
Kindly,
Janis, eazyBI support