substring

substring(s,i,n) -- yields the substring of the string s starting at position i with length n.

substring(s,i) -- yields the substring of s starting at position i and continuing to the end of s.

Positions are numbered starting at 0.

Requests for character positions out of bounds are silently ignored.

See also String.

Go to main index.

Go to concepts index.