RegEx to match numbers bigger than 0 on Grafana Value Mappings?

Viewed 15

I have a panel with a item that brings only numerical numbers, it can be from 0 to infinite. I would like to use the following RegEx, that works on Regex101, to work like this:

RegEx: /^[1-9][0-9]*$/

0 - Will not match 12 - It will match

It's not working when using Value Mapping, on Grafana tho. Here's how it is:

Grafana Value Mapping

If i use range to test it, let's say from 1 to 100, it works.

Can someone help me? Thanks.

0 Answers
Related