title: How to remove ALL IRC Colour codes from string
body: <p>note: I'm using Python3</p>
  
  <p>I've been searching everywhere and finding nothing complete. Asking on IRC everywhere. I need a regex expression that removes ALL IRC colour control codes. Nowhere is there a complete solution.</p>
  
  <p>Bold, Italics, Underline, Reverse, Colour, and Plain text
  The characters numbers are 2 29 31 22 3 15 respectively.</p>
  
  <p><strong>Edited:</strong> </p>
  
  <p>I just found a \x0f character being used also.</p>
  
  <p>The Colour character (3) contains possibly max 2 digits after it, with a possible comma then up to max of 2 digits more or no digits just character 3. It might also just be a comma with plain text after it in which case the comma should be left in the string.</p>
  
  <p>Please help I am stuck in the mud.</p>
  
  <p>Example: </p>
  
  <pre><code>'\003' + '12,4' + 'Red and blue' + '\003'+', \031Underline\031' 
  </code></pre>
  
  <p>The 12 is blue and the 4 is red, used with character 3.</p>
  
  <p>The expected output is just "Red and blue, Underline" plain text, no colour codes. That way I can use:</p>
  
  <pre><code>line = 'Red and blue, Underline'
  
  line.split(' ')[0] == 'Red'
  </code></pre>