Search

Substring

Last Updated: Mar 8, 2023

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?