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
kafka_log_logendoffset{topic=‘goi_Testmail2’}

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

how do I write this ?

Below doesn’t works
kafka_log_logendoffset{topic=‘goi_*’}