[squeak-dev] newbie question: how to replace a character with
nothing
Joseph J Alotta
joseph.alotta at gmail.com
Fri Oct 26 02:28:06 UTC 2012
Greetings. I found a useful method. Only thing is
I don't know how to write the character code for no character.
'12%31%%1232' replaceAll: $% with: $. '12.31..1232'
'12%31%%1232' replaceAll: $% with: $* '12*31**1232'
'12%31%%1232' replaceAll: $% with: '' ==> error
'12%31%%1232' replaceAll: $% with: Nil ==> error
I looked for a deleteAll: method but there is none for Strings.
Thank you for your help.
Joe.
More information about the Squeak-dev
mailing list
|