String Manipulation

Integrated into the core Wolfram Language is industrial-strength string manipulation, not only with ordinary regular expressions but also with the Wolfram Language's own powerful general symbolic string-pattern language.

"string" — a string, allowing Unicode or special characters

Structural Operations

(RefLink[StringJoin, paclet:ref/StringJoin]) ((RefLink[<>, paclet:ref/StringJoin])) — join strings together

(RefLink[StringLength, paclet:ref/StringLength]) — length of a string

(RefLink[StringSplit, paclet:ref/StringSplit]) — split a string at spaces or other delimiters

(RefLink[StringTake, paclet:ref/StringTake]), (RefLink[StringDrop, paclet:ref/StringDrop]) — take or drop parts of a string

(RefLink[StringPart, paclet:ref/StringPart]) — get one or more characters from specific positions in a string

(OrangeLink[String Patterns », paclet:guide/StringPatterns])

(RefLink[StringExpression, paclet:ref/StringExpression]) — a symbolic string expression including symbolic string patterns

(OrangeLink[Operations on Strings », paclet:guide/StringOperations])

(RefLink[StringReplace, paclet:ref/StringReplace]) — make replacements for string patterns

(RefLink[StringCases, paclet:ref/StringCases]) — find cases of string patterns

(RefLink[StringContainsQ, paclet:ref/StringContainsQ]) — test whether a string contains a string pattern

(OrangeLink[String Templating », paclet:guide/WorkingWithTemplates])

(RefLink[StringTemplate, paclet:ref/StringTemplate]) — create a string template

(RefLink[<*…*>, paclet:ref/TemplateExpression]) — expression for evaluation within a string template

(RefLink[`…`, paclet:ref/TemplateSlot]) — slot for substitution

(OrangeLink[Text Construction », paclet:guide/TextConstruction])

(OrangeLink[Character-Oriented Operations », paclet:guide/CharacterOperations])

(RefLink[Characters, paclet:ref/Characters]) — break a string into a list of characters

(OrangeLink[String Alignment & Comparison », paclet:guide/SequenceAlignmentAndComparison])

(RefLink[SequenceAlignment, paclet:ref/SequenceAlignment]) — find matching sequences in strings

(RefLink[Nearest, paclet:ref/Nearest]) — find strings nearest in edit distance

(OrangeLink[String Analysis », paclet:guide/TextAnalysis])

(OrangeLink[String Semantics, paclet:guide/ConvertingBetweenExpressionsAndStrings])

(RefLink[ToString, paclet:ref/ToString]), (RefLink[ToExpression, paclet:ref/ToExpression]) — convert between expressions and strings

(RefLink[Interpreter, paclet:ref/Interpreter]) — interpret strings according to many type specifications

(RefLink[SemanticInterpretation, paclet:ref/SemanticInterpretation]) — interpret strings semantically

(RefLink[ImportString, paclet:ref/ImportString]), (RefLink[ExportString, paclet:ref/ExportString]) — translate strings in many file and other formats

(RefLink[TextString, paclet:ref/TextString]) — give a textual version of any expression as a string

(OrangeLink[Systems-Related Operations », paclet:guide/SystemsRelatedStringOperations])

(OrangeLink[Operations on File Names », paclet:guide/OperationsOnFileNames])

(OrangeLink[Operations on URLs », paclet:guide/URLManipulation])