You say:
i want to store the each group as "> to >"
And you supply what we can only assume are meant to be two records of input. But there are only 3 '>' characters in total.
So either you want
- the first record to not end with '>';
- Or the second '>' to be (re)used both to end the first record and start the second;
- Or you omitted a '>';
Which is it?
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.