WLJS LogoWLJS Notebook

StringSplit

StringSplit["string"] splits a string into a list of substrings separated by whitespace.

StringSplit["string", patt] splits at delimiters matching the pattern.

Examples

Split by whitespace:

StringSplit["Hello World"]
(* {"Hello", "World"} *)

Split by a delimiter:

StringSplit["a,b,c", ","]
(* {"a", "b", "c"} *)

Please visit the official Wolfram Language Reference for more details.

On this page