Grafana 11+ table column filter - how does the regex filtering work?

I am unable to understand how the regex filtering works. There is such feature apparently according to the docs

Example column values

- apple_banana_pear
- apple_pear_banana
- banana_pear_apple

A regex like apple.*banana should return 2 matches… but I can’t make it work. The docs are very limited on this feature. Is there a special syntax that has to be used (like surrounding in forward slashes, javascript regex style?). I guess the filter mode has to be Contains?

grafana uses golang regex syntax:

you can experiment here:

That’s good to know. Did you manage to make it work in Grafana though? Regex special characters like .* don’t seem to work. Just that simple regex doesn’t give any results

have you heard the expression: if you have a problem that you need regex to solve, now you have two problems :rofl:

I am not very good at regex, but here is a start:

:smiley: didn’t heard of it, I just experienced it :smiley:

It doesn’t solve my problem though… to clarify, the issue is not the regex, but how to use it in Grafana, in a table’s column filter, if possible at all…

Try a value mapping