WLJS LogoWLJS Notebook

StringDrop

StringDrop["string", n] gives string with its first n characters dropped.

StringDrop["string", -n] gives string with its last n characters dropped.

Examples

Drop first characters:

StringDrop["Hello World", 6]
(* "World" *)

Drop last characters:

StringDrop["Hello World", -6]
(* "Hello" *)

Please visit the official Wolfram Language Reference for more details.

On this page