text module

text::substring

Extract a portion of a string.

Syntax

RQL

Parameters

NameTypeDescription
valueUtf8The string to extract from
startIntegerThe starting index (0-based)
endIntegerThe ending index (exclusive)

Return Value

Returns a new string containing the characters from the start index up to (but not including) the end index.

Examples

Extract prefix

$ Extract prefix
$ ctrl+enter to run

Get first characters

$ Get first characters
$ ctrl+enter to run

Extract middle portion

$ Extract middle portion
$ ctrl+enter to run

Related Functions