Adding REGEX for kafka topic

I am using grafana v6.3.2.

my kafka messages are consumed by prometheus for particular topic. I need to visualize that now with grafana.

Below query works fine

but I need to have regex so topic matches all the metrics which has goi_*

how do I write this ?

Below doesn’t works