[Zope] cut / change letters in a string in python

Dieter Maurer dieter@handshake.de
Sat, 14 Jul 2001 14:34:04 +0200 (CEST)


Marcus Schopen writes:
 > how do I cut all letters in a string?
 > The string is "6.0b". 
 > Before using float ("6.0b") I'd like to change "b" to "02" or just cut
 > all letters.
Look at "string.translate", "string.replace" (--> Python library reference)
and slicing (--> Python language reference).


Dieter