Merge commit 'da16527896d3087585c5e758083ea498dcabc2c3'

This commit is contained in:
Bjørn Erik Pedersen
2022-12-02 09:19:23 +01:00
38 changed files with 372 additions and 174 deletions

View File

@@ -5,14 +5,14 @@ categories: [functions]
menu:
docs:
parent: functions
keywords: [regex]
keywords: [replace 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.