Flux Query Measurements That Contain a Substring

Is it possible to query for a measurement that contains a substring? For example if I have the measurement name “foo_bar” can I use a filter to look for any measurement that has substring “bar”? I tried the below and it did not work. Alternatively I can use regex but want to know if this function should work?

|> filter(fn: (r) => strings.containsStr(v: r._measurement, substr: "bar")

Hello @mbasith,
Yup that worked for me when I tried it.