logo       

Splitting strings: msg#00184

lang.smalltalk.squeak.beginners

Subject: Splitting strings

Hi,

is there anything like ruby's String#split in Smalltalk? (split the
string at string occurences or regexp matches)

I found SequenceableCollection#piecesCutWhere: or String#findTokens
but I need to split at occurences of a substring. I must also admit my
problem is with VW... I did try in the method finder in Squeak, but
without much success.

--
Damien Pollet
type less, do more


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise