Skip to content
Parse tokens from an string into an array
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
sta
.editorconfig
.gitignore
.travis.yml
LICENSE
README.md
_config.yml
setup.py
test.py

README.md




sta : Parse tokens from an string into an array

Overview

sta extract the words from a string, and store those words in an array. The words are separated by an space/s.

Install

pip install sta

Usage

import sta

print(sta('this string is divided by spaces'))
# => [ 'this', 'string', 'is', 'divided', 'by', 'spaces' ]

API

sta('string')

Return an array with each token

Return Type: list

Related

  • str-to-arr: convert an string into an array in JavaScript.
  • s-to-o: convert an string into an object in JavaScript.

Team

Carlos Abraham Logo
Carlos Abraham

License

MIT License © Carlos Abraham

You can’t perform that action at this time.