2017-03-27 16:32:31 -05:00

27 lines
523 B
Markdown

---
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]
tags: []
ns:
signature: ["replace INPUT OLD NEW"]
workson: []
hugoversion:
relatedfuncs: []
deprecated: false
aliases: []
---
`replace` replaces all occurrences of the search string with the replacement string:
```
`{{ replace "Batman and Robin" "Robin" "Catwoman" }}`
→ "Batman and Catwoman"
```