|str f l r|str := 'complexgrammar'.f := (str from: 1 to:(str findSubstring: 'grammar' in:str startingAt: 1 matchTable: ( String classPool at: #CaseSensitiveOrder)) -1).l := (str from: (str findSubstring: 'grammar' in:str startingAt: 1 matchTable: ( String classPool at: #CaseSensitiveOrder)) to:(str size)).r := (f capitalized) , ' ' , (l capitalized) .r inspect
Hi folks.I am trying to figure out how to separate some words in a string 'complexgrammar' so I can print Complex Grammar.looking for solutions, I find Tokenish, a class that does nothing with no comment.I think it may be a former colleague of mine.