Skip to content

Instantly share code, notes, and snippets.

@nobusue
Created October 10, 2010 05:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nobusue/619000 to your computer and use it in GitHub Desktop.
Save nobusue/619000 to your computer and use it in GitHub Desktop.
// g100pon #26 文字列を分割してListに変換
assert 'This is a pen'.tokenize() == ['This', 'is', 'a', 'pen']
assert '東京/大阪/名古屋/仙台'.tokenize('/') == ['東京', '大阪', '名古屋', '仙台']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment