The first argument is the substring that should be replaced, the second is the replacement string. If the optional third argument count is given, only the first count occurrences are replaced:{{ "Hello World"|replace("Hello", "Goodbye"
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {...
The first argument is the substring that should be replaced, the second is the replacement string. If the optional third argument count is given, only the first count occurrences are replaced: {{ 'Hello World'|replace('Hello', 'Goodbye') }} -> Goodbye World{{ 'aaaaargh'|replace('a',...
The first argument is the substring that should be replaced, the second is the replacement string. If the optional third argument ``count`` is given, only the first ``count`` occurrences are replaced: .. sourcecode:: jinja {{ "Hello World"|replace("Hello", "Goodbye") }} -> ...
Return a copy of the value with all occurrences of a substring replaced with a new one. The first argument is the substring that should be replaced, the second is the replacement string. If the optional third argument count is given, only the first count occurrences are replaced: {{ "Hello...
The first argument is the substring that should be replaced, the second is the replacement string. If the optional third argument count is given, only the first count occurrences are replaced: {{ 'Hello World'|replace('Hello', 'Goodbye') }} -> Goodbye World{{ 'aaaaargh'|replace('a',...
The first argument is the substring that should be replaced, the second is the replacement string. If the optional third argument count is given, only the first count occurrences are replaced: {{ 'Hello World'|replace('Hello', 'Goodbye') }} -> Goodbye World {{ 'aaaaargh'|replace('a'...