Syntax
substring('<text>', <startIndex>, <length>)Examples
substring('hello world', 6, 5)'world'
Maker notes
- Fails if the range runs past the end of the text. slice() is more forgiving.
Returns a set number of characters from a string, starting at a zero-based position.
substring('<text>', <startIndex>, <length>)substring('hello world', 6, 5)'world'