Skip to main content

Text.at

atindex

Group: Selections
Aliases: get character

Documentation

Returns a character from the text at the specified index (0-based).

Arguments

  • index: The location in the text to get the character from. The index is also allowed be negative, then the characters are counted from the end of the text, i.e. -1 will correspond to the last character.

Examples

Get the individual characters in the text "건반(Korean)".

      "건반(Korean)".at 1 == "반"

Remarks

What is a Character?

A character is defined as an Extended Grapheme Cluster, see Unicode Standard Annex 29. This is the smallest unit that still has semantic meaning in most text-processing applications.