From 7289c064b7059d7a2ce68089671c52fd608778f9 Mon Sep 17 00:00:00 2001 From: Owen Diehl Date: Mon, 19 Jul 2021 03:18:16 -0400 Subject: [PATCH] Fixes regexReplaceAll docs (#3998) closes #3939 --- docs/sources/logql/template_functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sources/logql/template_functions.md b/docs/sources/logql/template_functions.md index 403ee51e70b7c..28f36d2a61f96 100644 --- a/docs/sources/logql/template_functions.md +++ b/docs/sources/logql/template_functions.md @@ -108,7 +108,7 @@ Signature: `regexReplaceAll` returns a copy of the input string, replacing matches of the Regexp with the replacement string replacement. Inside string replacement, $ signs are interpreted as in Expand, so for instance $1 represents the text of the first sub-match. See the golang [Regexp.replaceAll documentation](https://golang.org/pkg/regexp/#Regexp.ReplaceAll) for more examples. ```template -`{{ regexReplaceAllLiteral "(a*)bc" .some_label "${1}a" }}` +`{{ regexReplaceAll "(a*)bc" .some_label "${1}a" }}` ``` `regexReplaceAllLiteral` function returns a copy of the input string and replaces matches of the Regexp with the replacement string replacement. The replacement string is substituted directly, without using Expand.