Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > String Manipulation > Character Operations >

Characters

Characters["string"]
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.
Break a string into a list of characters:
Show in InputForm:
Reassemble the string:
Characters handles special characters just like ordinary ones:
Characters threads itself element-wise over lists:
Break a string into overlapping trigrams:
Reassemble into strings:
Sort the characters in a string:
Find their frequencies:
Rotate the characters in a string:
Make an array out of a list of strings:
Characters gives a list of strings of length 1:
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:
New in 1 | Last modified in 3
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team