Lexical - F$EXTRACT
Use to extract substrings.
offset,- ! Zero relative!
The offset is “zero-relative”; i.e., starts at zero(0).
Notes:
Earlier in this session, we looked at substring replacements. The F$EXTRACT() lexical function allows substring extraction.
The original string is left unchanged; only the contents of the requested substring are returned.
Note that the offset is “zero-relative”. The first character in a string has an offset of zero(0). The offset of the last character in a string is equal to the length of the string minus one(1) .