in reply to Regex to select multiple lines

I think we need to see more of your code and a sample of your input data.

And please read the formatting guidelines. Your array indexes look very confusing.

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

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