[Newbies] Find and replace
Robert F. Scheer
rfscheer at speakeasy.net
Sun Dec 30 13:30:36 UTC 2007
Open up a method browser and search for:
findSubstring: in: startingAt: matchTable:
which is a method for ByteStrings and then look at
replaceFrom: to: with: startingAt:
I'm still new too so hope it works for you.
- Robert
On Sun, 2007-12-30 at 13:23 +0100, an organic wrote:
> Hello,
>
> i am new to smalltalk and i look for some easy way to find some
> substring in another string and replace it by another substring:
>
> example: string := 'Hello how are you? I am fine. Thank you and you?'
> substring to find 'you' replace by 'AA'
>
> transform to 'Hello how are AAA? I am fine. Thank AAA and AAA?'
>
> thnx.
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
More information about the Beginners
mailing list