replace_first
Replaces only the first occurrence of an argument in a string with the second argument
Input
-
{{ 'sea shells by the sea shore' | replace_first: 'sea', 'ocean' }}
Output
-
ocean shells by the sea shore
Replaces only the first occurrence of an argument in a string with the second argument
{{ 'sea shells by the sea shore' | replace_first: 'sea', 'ocean' }}
ocean shells by the sea shore