regex_replace
x | regex_replace(pattern=, rep=)Replaces matches of pattern with rep ($1 groups).
Arguments#
| Argument | Type | Required |
|---|---|---|
pattern | string | yes |
rep | string | yes |
Details#
- Kind: Filter, implemented by tera-contrib.
- Available in: every kind of template: layouts, partials, shortcodes and render hooks.
- Output: escaped like any value, unless marked
safe.