Properly implemented stripping of colour codes through regular expressions.