replace the regex with
Code:
$regex(%txt,/(\[[0-9]?;?[0-9]{2}m)/g)

or so I'm told