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