i have an array with one line per element. like this element # content 1 ***1*** 2 stuff 3 stuff 4 ***end1*** 5 ***2*** 6 stuff 7 stuff 8 ***end2*** and i want el. 1 to hold the strings between ***1*** and ***end1*** and so on how should i do this?