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 > String Operations >

StringReverse

StringReverse["string"]
reverses the order of the characters in "string".
  • StringReverse[{s1, s2, ...}] gives the list of results for each of the si.
Reverse the characters in a string:
Reverse the characters in a string:
In[1]:=
Click for copyable input
Out[1]=
StringReverse works on special characters:
StringReverse threads automatically over lists:
Find all palindromes in the dictionary:
Newline (\n) counts as a single character:
StringReverse is the string equivalent of Reverse:
StringReverse is its own inverse:
StringReverse operates on the raw characters in a string:
New in 2 | Last modified in 5.1
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team