From d533f7c9c8c691633e25cb9bac3ea1b2d898433f Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Sat, 19 Nov 2022 18:09:57 +0100 Subject: [PATCH] Fixing typos (#1900) Adding related functions --- content/en/functions/findRe.md | 2 +- content/en/functions/replace.md | 2 +- content/en/functions/replacere.md | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/content/en/functions/findRe.md b/content/en/functions/findRe.md index 2896e3cd1..8e08bfc0d 100644 --- a/content/en/functions/findRe.md +++ b/content/en/functions/findRe.md @@ -12,7 +12,7 @@ signature: relatedfuncs: [replaceRE] aliases: [] --- -By default, the `findRE` function finds all matches. You can limit the number of matches with an optional LIMIT paramater. +By default, the `findRE` function finds all matches. You can limit the number of matches with an optional LIMIT parameter. When specifying the regular expression, use a raw [string literal] (backticks) instead of an interpreted string literal (double quotes) to simplify the syntax. With an interpreted string literal you must escape backslashes. diff --git a/content/en/functions/replace.md b/content/en/functions/replace.md index 07b83d035..931401bd5 100644 --- a/content/en/functions/replace.md +++ b/content/en/functions/replace.md @@ -12,7 +12,7 @@ keywords: [] signature: ["strings.Replace INPUT OLD NEW [LIMIT]", "replace INPUT OLD NEW [LIMIT]"] workson: [] hugoversion: -relatedfuncs: [] +relatedfuncs: [replaceRE] deprecated: false aliases: [] --- diff --git a/content/en/functions/replacere.md b/content/en/functions/replacere.md index f1e34ba65..ea43b2e81 100644 --- a/content/en/functions/replacere.md +++ b/content/en/functions/replacere.md @@ -9,10 +9,10 @@ keywords: [regex] signature: - "replaceRE PATTERN REPLACEMENT INPUT [LIMIT]" - "strings.ReplaceRE PATTERN REPLACEMENT INPUT [LIMIT]" -relatedfuncs: [findRE] +relatedfuncs: [replace,findRE] aliases: [] --- -By default, the `replaceRE` function replaces all matches. You can limit the number of matches with an optional LIMIT paramater. +By default, the `replaceRE` function replaces all matches. You can limit the number of matches with an optional LIMIT parameter. When specifying the regular expression, use a raw [string literal] (backticks) instead of an interpreted string literal (double quotes) to simplify the syntax. With an interpreted string literal you must escape backslashes.