Removes only the first occurrence of a specified substring from the input string. Use it when you need to eliminate the first match while preserving any additional instances.
-
Remove the first occurrence of a character
{{removefirst record.text "a"}}Input:
{ "record": { "text": "a b a b a b" } }Output:
b a b a b
-
Remove the first word in a sentence
{{removefirst record.note "Order"}}Input:
{ "record": { "note": "Order Order Order" } }Output:
Order Order
Tip
-
Only the first match is removed; all later occurrences remain unchanged.
-
Removal is case-sensitive—
"A"and"a"are treated differently. -
Use this helper when cleaning up values with a predictable first marker or prefix.