Skip to main content

text

DEPRECATED

This component is deprecated and will be removed in the next major version release. Please consider moving onto alternative components.

# Common config fields, showing default values
label: ""
text:
operator: trim_space
arg: ""
value: ""

Fields

operator

A text based operation to execute.

Type: string
Default: "trim_space"
Options: append, escape_url_query, unescape_url_query, find_regexp, prepend, quote, regexp_expand, replace, replace_regexp, set, strip_html, to_lower, to_upper, trim, trim_space, unquote.

arg

An argument for the operator (not always applicable).

Type: string
Default: ""

value

A value to use with the operator. This field supports interpolation functions.

Type: string
Default: ""

parts

An optional array of message indexes of a batch that the processor should apply to. If left empty all messages are processed. This field is only applicable when batching messages at the input level.

Indexes can be negative, and if so the part will be selected from the end counting backwards starting from -1.

Type: array
Default: []

Alternatives

All functionality of this processor has been superseded by the bloblang processor.