Files
hugo/content/functions/replacere.md
T
2017-02-26 19:27:05 -06:00

594 B

title, linktitle, description, godocref, date, publishdate, lastmod, categories, tags, signature, workson, hugoversion, relatedfuncs, deprecated, aliases
title linktitle description godocref date publishdate lastmod categories tags signature workson hugoversion relatedfuncs deprecated aliases
replacere replaceRE Replaces all occurrences of a regular expression with the replacement pattern. 2017-02-01 2017-02-01 2017-02-01
functions
regex
false

Replaces all occurrences of a regular expression with the replacement pattern.

{{ replaceRE "^https?://([^/]+).*" "$1" "http://gohugo.io/docs" }}` → "gohugo.io"
{{ "http://gohugo.io/docs" | replaceRE "^https?://([^/]+).*" "$1" }}`  "gohugo.io"