Skip to content

StringTake

$ wo 'StringTake["Hello World!", 5]'
Hello

A span i;;j takes characters i through j.

$ wo 'StringTake["hello", 2;;4]'
ell
$ wo 'StringTake["hello", ;;-2]'
hell