# Refactor multiple replace statements

**URL:** <https://discourse.gohugo.io/t/refactor-multiple-replace-statements/9994>\
**Category:** support\
**Created:** [January 14, 2018, 12:59am UTC](https://discourse.gohugo.io/t/refactor-multiple-replace-statements/9994 "2018-01-14T00:59:57Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![alexandros](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexandros](https://discourse.gohugo.io/u/alexandros)\
**Post date:** [January 14, 2018, 5:25am UTC](https://discourse.gohugo.io/t/refactor-multiple-replace-statements/9994/2 "2018-01-14T05:25:33Z")

</div>

You can pipe them or use replaceRE (if there is a pattern to match), or create a dict first and then replace. See the functions at the Docs.

---

_[View the full topic](https://discourse.gohugo.io/t/refactor-multiple-replace-statements/9994)._
