Substring

substring

Extracts a substring from a source string starting at a given index with a given length.

Spec

substring(source, start, length)

Parameters

source - The source string.
start - The zero-based starting index.
length - The number of characters to extract.

Return Value

A substring of the source string. Out-of-range indices are clamped.

Example

datatable(val:string)["hello world"]
| extend result = substring(val, 6, 5)
valresult
hello worldworld