18.2 Substrings

18.2.1 substring

Note: Added in G-Cows version 1.2

Synopsis

substring(source, from, length);

Description

substring returns length characters from source, starting from index from. If length is not specified, returns everything from index from up to the end.

source can be any valid expression reducing to a string; from and length can be any valid expression reducing to an integer.

This manual can be downloaded from http://www.g-cows.org/.