string methods (warning, newbie)

Terry Reedy tjreedy at udel.edu
Sat Feb 26 21:16:47 EST 2005


"anthonyberet" <nospam at me.invalid> wrote in message 
news:38co9sF5lgss3U1 at individual.net...
> Is there a string mething to return only the alpha characters of a 
> string?
> eg 'The Beatles - help - 03 - Ticket to ride', would be 
> 'TheBeatlesTickettoride'

I believe you can do this with string.translate (string module, not str())

tjr






More information about the Python-list mailing list