How to strip color codes used by mIRC users?

Posted by daniels on Stack Overflow See other posts from Stack Overflow or by daniels
Published on 2009-06-09T14:55:08Z Indexed on 2010/03/16 1:19 UTC
Read the original article Hit count: 579

Filed under:
|

I'm writing a IRC bot in Python using irclib and I'm trying to log the messages on certain channels.
The issue is that some mIRC users and some Bots write using color codes.
Any idea on how i could strip those parts and leave only the clear ascii text message?

© Stack Overflow or respective owner

Related posts about python

Related posts about irc