From 009aafbee461d865fd5a258033126891d6d494d3 Mon Sep 17 00:00:00 2001 From: sickfabian <102162936+sickfabian@users.noreply.github.com> Date: Wed, 19 Jul 2023 22:00:00 +0200 Subject: [PATCH] Fix regexp example in regular-expressions.md (#4994) Co-authored-by: Jason Stirnaman --- content/influxdb/v2.7/query-data/flux/regular-expressions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/influxdb/v2.7/query-data/flux/regular-expressions.md b/content/influxdb/v2.7/query-data/flux/regular-expressions.md index f71953e7d..4a864d335 100644 --- a/content/influxdb/v2.7/query-data/flux/regular-expressions.md +++ b/content/influxdb/v2.7/query-data/flux/regular-expressions.md @@ -76,7 +76,7 @@ The following example drops columns whose names do not begin with `_`. from(bucket: "example-bucket") |> range(start: -15m) |> filter(fn: (r) => r._measurement == "mem") - |> drop(fn: (column) => column !~ /_.*/) + |> drop(fn: (column) => column !~ /^_.*/) ``` ## Helpful links