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
As I found this question useful, I figured I'd contribute.
I added a couple things to the regex
regex = re.compile("\x1f|\x02|\x03|\x16|\x0f(?:\d{1,2}(?:,\d{1,2})?)?", re.UNICODE)
\x16 removed the "reverse" character. \x0f gets rid of another bold character.
\x16
\x0f