Search

Substring

Last Updated: May 27, 2021

Articles

Use this function to get a new string that is a substring of the input string. Substring begins at the given start index and extends till end index without including end index.

Syntax

Substring (end_index, start_index, input)

Parameters

Input Parameter Name Description
end_index End index
start_index Start index
input input string

Index starts with 0.

Returns

Return value Description
text Returns the substring

Sample

Substring (3, 1, abcde)

  • Gets the substring abcde between indexes 1 and 3.
    Returns bcd.

To view all the Text functions, click here.

Did you find what you were looking for?