Skip to content

rtrim

Written as rtrim(argnum flags):options in a transform expression.

Minimum arguments 1
Maximum arguments no limit
Default arguments 1
Argument modes SINGLE_PRIMITIVE, SINGLE_PRIMITIVE_ARRAY, MULTIPLE_PRIMITIVES

A TrimTransform variant that only trims chars from trailing of string. Other than this bit, it works the same way as TrimTransform.

Note: this variant uses ‘rtrim’ as TYPE attrib.

Flag Letter
spread_input s
noncaptive_input I
arg_num_flexible f

RTrim default chars from a single string argument

Section titled “RTrim default chars from a single string argument”
Input args: [" world\n"]
Transforms: "rtrim:"
Output: " world"

RTrim custom chars from a single string argument

Section titled “RTrim custom chars from a single string argument”
Input args: [" world\n"]
Transforms: "rtrim: "
Output: " world\n"