How do i use Value Mapping feature to extract certain parts of the log text?

I was reading this discussion and tried to apply the same steps as provided in the accepted answer but for me it’s not working:

I verified that regex ‘\w+.+’ extract the parts of the text that i am interested in.

What else do i need to do in order for it to work.

What i trying to accomplish: instead of displaying the whole original log message in the table, i want to display only a certain part of it.

Thanks

grafana uses golang regex, did you verify it for that flavour?

checkout these two dashboards on the play site as well for examples of regex and value mappings:

https://play.grafana.org/d/3sevWaU7z/multiple-regex-value-mappings?editPanel=2&tab=queries
https://play.grafana.org/d/dd1082a7-4fd1-40b7-a95a-f37620c4e2f1/regex-overrides-value-mappings-1?editPanel=1&tab=queries