Hi everyone,
I’m currently facing an issue with a regular expression in Grafana. I’m trying to extract just the date from a timestamp like this: 2025-05-28T00:00:00.000Z
The regular expression I’m using is: ^(.?)T.$
In the Grafana Playground, this regex works perfectly - it matches the full string and captures just the date portion (2025-05-28
) in group 1. However, when I try to use the same regex in Grafana version 10, it doesn’t seem to work as expected.
Has anyone encountered this behavior in version 10? Is there a change in how regex is parsed or applied between the Playground and the actual dashboard version? Or is there a workaround to reliably extract just the date from an ISO 8601 timestamp in Grafana 10?
Thanks in advance!
Image from playground
Image from v10