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
I even had to add '\x0f', whatever use it has
\x0f
regex = re.compile("\x0f|\x1f|\x02|\x03(?:\d{1,2}(?:,\d{1,2})?)?", re.UNICODE) regex.sub('', msg)