Your Airkit journey starts here

SUBSTRING

Get the substring of from a string starting at a given index.

Declaration

SUBSTRING(base_string, start, end) -> substring
SUBSTRING(base_string, start) -> substring

Parameters

base_string
string -The base string to pull the substring out of.
start
number -Number value for the start position.
end
number -End index to end the substring, if not provided it will take to the end of the string.

Return Values

substring
string -The resulting substring taken from the baseString starting at the start index and ending at the end index or the end of the baseString.