Parse tokens from an string into an array
sta : Parse tokens from an string into an array
sta extract the words from a string, and store those words in an array. The words are separated by an space/s.
pip install sta
import sta print(sta('this string is divided by spaces')) # => [ 'this', 'string', 'is', 'divided', 'by', 'spaces' ]
Return an array with each token
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.