Template:Substr any/doc

The substring Template:Substr_any extracts a substring of any characters, including accented letters, for a specified offset and length.

Usage

 * = Substring of text starting at offset and containing length characters.

Offset from 0: the first character is numbered 0, and so on. The offset + length must be less than 50. Operates on an extended character set, including accented letters, if listed in Template:Str index/getchar.

Examples

 * returns 2 letters "".
 * returns the 4 characters starting at the 9th, "".
 * returns 4 letters "" as too short for 10.