Qurak

TextCases

Disponible

Extracts text units of a given type from a string. With `"Word"` it returns

TextCases[text, form]
TextCases[text, {form1, form2, …}]
TextCases[text, formspec -> prop]
TextCases[text, formspec -> {prop1, prop2, …}]
TextCases[text, spec, n]
TextCases["The cat sat on the mat.", "Word"] → {The, cat, sat, on, the, mat}TextCases["Hello world. How are you? Fine.", "Sentence"] → {Hello world., How are you?, Fine.}TextCases["one two three four", "Word", 2] → {one, two}

Thèmes

Connexes

Les 6300 fonctions · Utiliser ceci depuis un client MCP