Next: Searching for substrings, Up: Macros for text handling [Contents][Index]
The length of a string can be calculated by len
:
Expands to the length of string, as a decimal number.
The macro len
is recognized only with parameters.
len() ⇒0 len(`abcdef') ⇒6