gives a list of the characters in a string.
- Each character is given as a length one string.
- Characters handles both ordinary and special characters.
- Characters has attribute Listable.
Examplesopen allclose all
Basic Examples (1)
Break a string into a list of characters:
Show in InputForm:
Characters handles special characters just like ordinary ones:
Characters threads itself element-wise over lists:
Properties & Relations (2)
Characters gives a list of strings of length 1:
Characters splits characters composed of multiple codes into their individual codes:
Also, some emoji characters will break apart into their constituent parts:
Possible Issues (3)
A string form of an expression must be created before it can be broken into characters:
Characters operates on the explicit character form of strings:
Characters normally treats special characters just like other characters:
Use ToString and FullForm to get the characters in the full names of special characters:
Wolfram Research (1988), Characters, Wolfram Language function, https://reference.wolfram.com/language/ref/Characters.html (updated 1996).
Wolfram Language. 1988. "Characters." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 1996. https://reference.wolfram.com/language/ref/Characters.html.
Wolfram Language. (1988). Characters. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Characters.html