Using regex in Grafana templating - how?

I think this should work:

/([a-zA-Z0-9\.]+)/

[a-zA-Z0-9\.]+ matches lower and uppercase letters, numbers and dots. The brackets around them create a capture group so that it only returns the part that matches.

2 Likes