In addition to 256-xterm ansi colors, handle 24-bit colors.

Handle text with ANSI escape codes using 24-bit colors of the form ESC[ … 38|48;2;<r>;<g>;<b>.

Slight tweak in regex.