Substring
DataTarget independent
text.substringTake Length characters starting at Start (a CJK character counts as 1). Length -1 (default) takes to the end, 0 gives an empty string. Out-of-range Start gives an empty string.
Example use
Take 4 characters from index 0; use length -1 to read to the end.
Node preview
Right-drag to pan and scroll to zoom. Expand inputs and edit parameters to see how ports change. This preview does not run the node; reopening the page restores the example.
Loading node preview…
Data inputs 3
- Text
textString The text this node reads, converts, searches or types.
Default availableDefault:""- Start
startInteger The zero-based starting position.
Default availableDefault:0- Minimum: -9007199254740991
- Maximum: 9007199254740991
Value format examples
042- Length
lengthInteger Characters to take; -1 means to the end and 0 means empty text.
Default availableDefault:-1- Minimum: -9007199254740991
- Maximum: 9007199254740991
Value format examples
042
Data outputs 1
- Result
resultString The result of this data operation, with its type determined by the matching inputs.
Version and node identity
Version 1.0.0
sha256:79d55c830c38d63470c3f2cc4d3589cebd930ed4f64e8a305cdc6bf6b61c261d