|
Re: Splitting strings: msg#00185lang.smalltalk.squeak.beginners
Damien Pollet a écrit : > 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. > You can use #subString: 'About somthing' subStrings: ' ' -> #('About' 'somthing')
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Splitting strings, Damien Pollet |
|---|---|
| Next by Date: | Re: Splitting strings, ncellier |
| Previous by Thread: | Splitting strings, Damien Pollet |
| Next by Thread: | Re: Re: Splitting strings, Damien Pollet |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |