in reply to tagged text parser

I don't know ( much about xml etc... ) or if there is a specific module for this kind of 'loose' parsing , but i suspect that what you want could be hacked from Text::Balanced and it's extract_bracketed method?

Hmmm... on second thoughts, maybe Parse::Gnaw would be a better avenue? Or Parse::RecDescent?

There must be a better way!?!

Update: SPAG

Just a something something...