DADiSP Worksheet Functions > Function Categories > String Manipulation > STREXTRACT
Extracts part of a string.
STREXTRACT("string", start, length)
"string" |
- |
String to extract from. |
start |
- |
An integer value for the starting character. |
length |
- |
An integer value for the number of characters to extract. |
A string.
strextract("One and a two and a three", 11, 3)
returns: two.
strextract("One and a two and a three", 11, -1)
returns: two and a three.
Set the length parameter to -1 to extract from the start parameter to the end of the string.