replace_first
Replaces the first occurrence of a substring in a string with a specified string.
Parameters
str1{String}The input string, required.str2{String}The substring to replace, required.str3{String}The replacement string, required.returns{String}The resulting string.
Usage
{{ replace_first str1 str2 str3 }}
Example
{{ replace_first 'hello' 'l' 'm' }}
Was this article helpful to you?