Parse text easily

Damien Cassou cassou at iam.unibe.ch
Wed Aug 17 12:30:02 UTC 2005


Hi,

I  have a  string which  I want  to parse  to search  words  and their
position in the string.

Something like this

'Smallwiki2 is powerfull, magritte too' parseForWords =>
#( ('Smallwiki2' 1) ('is' 12) ('powerfull' 15) ('magritte' 26) ('too' 35))

or something like this. Is there any method doing this ?

Thank you

-- 
Damien Cassou
  pour le Software Composition Group a Berne



More information about the Squeak-dev mailing list