Grafana Zabbix query Group 2 hostgroups on Regex

Hey Everyone,

I’m having issues getting a variable right.
I’m using a query for it, with Zabbix as DataSource and a Group Query Type. Basically, I want to get all the hosts that are members of 2 different host groups. I’ve not found any solution for the Regex.
I have /.*/ for Groups, which gets me all the groups, but I cannot get the Regex filter right. I want the hosts that match both hostgroups A AND B.

Is there any way to accomplish that? I’ve already tried /(?!(?!A)|(?!B))/ and other logical variations, but all of them were unsuccessful. Is there any other way I can go to achieve this?

Thank you very much for your help.