StringReverse

StringReverse["string"]

reverses the order of the characters in "string".

Details

  • StringReverse[{s1,s2,}] gives the list of results for each of the si.

Examples

open allclose all

Basic Examples  (1)

Reverse the characters in a string:

Scope  (2)

StringReverse works on special characters:

StringReverse threads automatically over lists:

Applications  (1)

Find all palindromes in the dictionary:

Properties & Relations  (3)

Newline (\n) counts as a single character:

StringReverse is the string equivalent of Reverse:

StringReverse is its own inverse:

Possible Issues  (1)

StringReverse operates on the raw characters in a string:

Introduced in 1991
 (2.0)
 |
Updated in 2003
 (5.0)
2004
 (5.1)