summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions/replace.md
blob: aeb19f296247405a23981b3c113d83b1a0d5568d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
title: replace
# linktitle: replace
description: Replaces all occurrences of the search string with the replacement string.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
categories: [functions]
menu:
  docs:
    parent: "functions"
keywords: []
signature: ["replace INPUT OLD NEW"]
workson: []
hugoversion:
relatedfuncs: []
deprecated: false
aliases: []
---

```
`{{ replace "Batman and Robin" "Robin" "Catwoman" }}`
→ "Batman and Catwoman"
```