How can I remove "word:" from a string in Python?

Posted by veb on Stack Overflow See other posts from Stack Overflow or by veb
Published on 2010-04-07T00:13:59Z Indexed on 2010/04/07 0:23 UTC
Read the original article Hit count: 563

Filed under:

Hi,

I'm wondering how to remove a dynamic word from a string within Python.

It will always have a ":" at the end of the word, and sometimes there's more than one within the string. I'd like to remove all occurrences of "word:".

Thanks! :-)

© Stack Overflow or respective owner

Related posts about python