Wolfram Language & System 10.0 (2014)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

String Operations

The Wolfram Language incorporates the latest highly efficient algorithms to allow operations on strings with millions of elements, all making use of the Wolfram Language's unique symbolic string patterns.


StringJoin join strings together

StringSplit split strings at whitespace, or any specified pattern

StringLength length of a string (in Unicode characters)

StringTake  ▪  StringDrop  ▪  StringInsert

StringTrim trim whitespace etc. from strings

StringPosition find positions of substrings or string patterns

StringReplacePart replace substrings at specified positions

StringReverse reverse the characters in a string

StringRotateLeft  ▪  StringRotateRight

StringReplace make replacements for substrings or string patterns

StringCases give all cases of string patterns in a string

StringCount count occurrences of a string pattern

StringFreeQ  ▪  StringMatchQ  ▪  StringReplaceList

Characters break a string into a list of characters

Hash compute hash codes for a string

ImportString, ExportString translate between many string formats

StringToStream set up a string to be read sequentially

Read  ▪  Find  ▪  Skip  ▪  SetStreamPosition  ▪  ...

Pluralize give a word in plural form when appropriate

String Data Operations »

SequenceAlignment  ▪  Nearest  ▪  FindClusters  ▪  DictionaryLookup  ▪  ...