Skip to content

Bars Specification 0.1.0 — Transform: remove_first

Category: string · Since: 0.1.0

Removes only the first occurrence of a value.

Removes only the first occurrence of value from the string-coerced input, leaving any later occurrences untouched.

Input coercion: string

Arguments

Name Type Optional Default
value string no

Arity: 1–1

Worked examples

{{ phrase | remove_first: "o" }}

fo boo
{{ phrase | upcase | remove_first: "L" }}

HELO

Full fixture: transforms/transform-remove_first.json