mirror of
https://github.com/gohugoio/hugo.git
synced 2026-09-01 19:22:38 +00:00
committed by
GitHub
parent
2563eee45e
commit
d533f7c9c8
@@ -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.
|
||||
|
||||
|
||||
@@ -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: []
|
||||
---
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user