Problem solved, but if it's HTML you are
parsing, you really should use a parser:
Sometimes i still use regexes or treat the file as an array
as you have done, but for any script that is going to be
used 'in production', use a parser. Heck, use a parser
anyway -- it's harder, but you get better with practice
(and smarter too).
jeffa
L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)