in reply to splitting and coloring

What have you tried? What problems are you having?

We're far more likely to help people who have tried to solve their problems for themselves first.

Have you looked at split? Or substr? Personally I think I'd use a regular expression.

--
<http://dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg