STRING:SUBSTRING

This generator expression belongs to the String Queries family. See that section for related generator expressions.

Syntax

$<STRING:SUBSTRING,string,begin,length>

Added in version 4.3.

The substring of the given string. If length is -1 or greater than the string length the remainder of the string starting at begin will be returned.

Both begin and length are counted in bytes, so care must be exercised if string could contain multi-byte characters.