removing characters from a string?

Aahz Maruch aahz at netcom.com
Mon Jul 31 18:13:49 EDT 2000


In article <8m4rqn+jpg0 at eGroups.com>,  <jesse at multimediacollective.com> wrote:
>
>this_string = "jesse at multimediacollective.com"
>
>"""and I wanted to get rid of the @, how would I do that? This 
>process has to be efficent for removing large quantities of special 
>characters, such as <,>,#,%,* etc, from the same string.  

string.translate(,,deletechars) is the fastest.
--
                      --- Aahz (Copyright 2000 by aahz at pobox.com)

Androgynous poly kinky vanilla queer het    <*>     http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

NOTE: end of September, Earthlink kills Netcom.  My new permanent address is 
aahz at pobox.com.  I have not decided where to set my primary shell account.
Please do not send me e-mail condolences; my mailbox is already too big.



More information about the Python-list mailing list