text length(text)length Type: (Text) -> Number

Gets the length of the given text.

Technical note: this is actually the number of Unicode codepoints in the text. For English text without accents, one character is one codepoint. If you have complex characters (e.g. flags) in your text, what looks like one character may be made up of multiple codepoints.

ExamplesClick an example to insert it
text length("hello")5
text length("a b.")4
text length("")0