WolframLang: Convert String
Number to String
ToString
-
Convert number or any expression to string.
String to Number
ToExpression
-
String to number.
ToExpression[ "3" ] === 3 ToExpression[ "3.21" ] === 3.21
String to List
StringSplit
-
split a string to a list of strings.
(* split by whitespace *) StringSplit[ "a b" ] === {"a", "b"}
(* split by comma *) StringSplit[ "a,b,c", "," ] === {"a", "b", "c"}
List to String
StringRiffle
-
List to string.
StringRiffle[ {"a" , "b" , "c"}, " " ] === "a b c"
WolframLang String
- WolframLang: String
- WolframLang: String Functions
- WolframLang: Get SubString
- WolframLang: Convert String
- WolframLang: Format String
- WolframLang: String Match
- WolframLang: String Replace
- WolframLang: Regular Expression
- WolframLang: String Expression
- WolframLang: StringExpression Pattern Syntax
- WolframLang: RegularExpression vs StringExpression