How do I filter in Grafana Metrics tab

I have labels like task.msgs.presale, task.msgs.diag etc…
In the metrics tab, can I filter things out like metric_name{series=“task.msgs.pre*”} ??
I am getting an error in Grafana when I do that.
Any way to filter?

It’s because that is not a valid prometheus query (I assume your using prometheus from the query), prometheus has a documentation site that explains the query language, in it you will find you need to use regex operator to use wildcard matching