Nov. 20, 2013
7:54 a.m.
Am 20.11.2013 um 04:20 schrieb Esteban A. Maringolo <emaringolo@gmail.com>:
I have a string like 'foo|bar||foobar|' and I want to split it into separate tokens like:
'foo|bar||foobar|' subStrings: $| -> #('foo' 'bar' '' 'foobar' '').
It is... to INCLUDE empty strings (or nil for that case) for the elements between to consecutive separators.
I can't found a method implementing this in Pharo (in Dolphin it works as I expect).
$| split: 'foo|bar||foobar|' Norbert