String Subset

Returns a portion, or substring, of a string.

1378

Inputs/Outputs

datatype_icon

string

The string from which you want to obtain a subset.

datatype_icon

offset

The number of characters into the input string at which this node begins its operation.

The offset of the first character in the input string is 0. If offset is beyond the end of the input string, this node returns an empty string.

Note A character refers to a code point, a numeric unit between 0 and 10FFFF16, defined by the Unicode standard for encoding. For more information about code points, research Unicode.

Default value: 0

datatype_icon

length

The number of characters you want to include in the substring.

If length is negative or 0, this node returns an empty string.

Note A character refers to a code point, a numeric unit between 0 and 10FFFF16 that is subscribed meaning by the Unicode standard for encoding. You can research Unicode for more information about code points and other units of meaning for encoding.

Default value: The entire length of string minus offset.

datatype_icon

substring

The portion of the input string that is the specified length beginning at the offset.

Note A character refers to a code point, a numeric unit between 0 and 10FFFF16 that is subscribed meaning by the Unicode standard for encoding. You can research Unicode for more information about code points and other units of meaning for encoding.

Reducing Performance Burden

Characters in UTF-8 can be multiple bytes so string nodes count the number of characters in a string instead of jumping to a point in memory. Since the length and offset parameters are in units of characters, avoid nesting this node with large strings because that can create exponential functions that carry a higher performance burden.