Name
substring — Extracts a substring
Synopsis
string
substring
( |
string
STRING
, |
|
integer
OFFSET
, |
|
integer
LENGTH
) ; |
Parameters
-
string
STRING
-
integer
OFFSET
-
integer
LENGTH
Description
Extracts a substring of the string STRING
, starting at OFFSET
after the first one with length of at most LENGTH
. OFFSET
starts with 0.
Usage
substring ("some text", 5, 2) -> "te"
substring ("some text", 42, 2) -> ""
substring("123456789", 2, 3) -> "345"