({{, (RefLink[StringReverse, paclet:ref/StringReverse])["string"]
reverses the order of the characters in "string". }})

OpenersNotesSection(Spacer1)Details

(RefLink[StringReverse, paclet:ref/StringReverse])[{(Subscript[s, 1]),(Subscript[s, 2]),…}] gives the list of results for each of the (Subscript[s, i]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (8)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Reverse the characters in a string:

StringReverse["abcdef"]

OpenersExampleSection1(Spacer1)Scope  (2)

(RefLink[StringReverse, paclet:ref/StringReverse]) works on special characters:

StringReverse["◆αβγ⟷𝒜ℬ𝒞↵"]

(RefLink[StringReverse, paclet:ref/StringReverse]) threads automatically over lists:

StringReverse[{"cat","dog","fish","coelenterate"}]

OpenersExampleSection2(Spacer1)Applications  (1)

Find all palindromes in the dictionary:

DictionaryLookup[x__/;x===StringReverse[x]]

OpenersExampleSection3(Spacer1)Properties & Relations  (3)

Newline (\n) counts as a single character:

StringReverse["abc\ndef"]

FullForm[%]

(RefLink[StringReverse, paclet:ref/StringReverse]) is the string equivalent of (RefLink[Reverse, paclet:ref/Reverse]):

StringReverse["abcdef"]

StringJoin[Reverse[Characters["abcdef"]]]

(RefLink[StringReverse, paclet:ref/StringReverse]) is its own inverse:

StringReverse[StringReverse["abcdef"]]

OpenersExampleSection4(Spacer1)Possible Issues  (1)

(RefLink[StringReverse, paclet:ref/StringReverse]) operates on the raw characters in a string:

StringReverse["red"]

FullForm["red"]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Reverse, paclet:ref/Reverse])  ▪  (RefLink[PalindromeQ, paclet:ref/PalindromeQ])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Operations on Strings, paclet:tutorial/OperationsOnStrings])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[String Operations, paclet:guide/StringOperations])}})}})

({{(Spacer1), ({{(Spacer1)Related Links}, {(WebLink[DocumentationFooterIconsRelatedLinks-EIWL.png(Spacer1)An Elementary Introduction to the Wolfram Language, https://www.wolfram.com/language/elementary-introduction/11-strings-and-text.html])(WebLink[: Strings and Text, https://www.wolfram.com/language/elementary-introduction/11-strings-and-text.html])}})}})