Substring
This block extracts part of a string.
Configuration
- Input String: the string to extract from.
- Start Position: zero-based position of the first character to keep.
- Extract: how much to extract.
- To End of String: everything from the start position to the end of the string.
- Fixed Length: at most Length characters from the start position.
- Length: number of characters to extract. Only shown when Extract is set to Fixed Length.
Connections
- Result: executed after the extraction. The extracted text is available to the following blocks as
result_str.
Note
Out-of-range positions are clamped, so the block never fails. If Start Position is past the end of the input, the result is an empty string.
See also String Index Of