in reply to Split of text

You could try it using the split function, but , since you posted data without <code> tags, it seems to be hiding html, so you would probably be better off using an html parser like HTML::Parser. On second thoughts, HTML::DOM may make more sense for a well structured source.

If you shows us your perl code and attempts at parsing, with the results expected and achieved, and articulate specific issues you encounter, we will be happy to assist you get closer to desired results.

        What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against?
              -Larry Wall, 1992